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:
		| @@ -21,6 +21,7 @@ int main() | ||||
| #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS | ||||
| #if __cplusplus >= 201103L | ||||
|     assert(std::char_traits<char16_t>::compare(u"", u"", 0) == 0); | ||||
|     assert(std::char_traits<char16_t>::compare(NULL, NULL, 0) == 0); | ||||
|  | ||||
|     assert(std::char_traits<char16_t>::compare(u"1", u"1", 1) == 0); | ||||
|     assert(std::char_traits<char16_t>::compare(u"1", u"2", 1) < 0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marshall Clow
					Marshall Clow