Move the test for zero-length into the char_traits (from string_view). Add tests to char_traits specializations
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@228981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
int main()
|
||||
{
|
||||
assert(std::char_traits<wchar_t>::compare(L"", L"", 0) == 0);
|
||||
assert(std::char_traits<wchar_t>::compare(NULL, NULL, 0) == 0);
|
||||
|
||||
assert(std::char_traits<wchar_t>::compare(L"1", L"1", 1) == 0);
|
||||
assert(std::char_traits<wchar_t>::compare(L"1", L"2", 1) < 0);
|
||||
|
||||
Reference in New Issue
Block a user