Index: libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/lt.pass.cpp =================================================================== --- libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/lt.pass.cpp +++ libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/lt.pass.cpp @@ -19,18 +19,22 @@ int main(int, char**) { - assert( std::char_traits::lt('\0', 'A')); - assert(!std::char_traits::lt('A', '\0')); + assert(std::char_traits::lt('\0', 'A')); + assert(!std::char_traits::lt('A', '\0')); - assert(!std::char_traits::lt('a', 'a')); - assert( std::char_traits::lt('A', 'a')); - assert(!std::char_traits::lt('a', 'A')); + assert(std::char_traits::lt('A', 'a') == (static_cast('A') < static_cast('a'))); + assert(std::char_traits::lt('A', 'a') == !std::char_traits::lt('a', 'A')); - assert( std::char_traits::lt('a', 'z')); - assert( std::char_traits::lt('A', 'Z')); + assert(std::char_traits::lt('0', '9')); + assert(std::char_traits::lt('a', 'z')); + assert(std::char_traits::lt('A', 'Z')); - assert( std::char_traits::lt(' ', 'A')); - assert( std::char_traits::lt('A', '~')); + assert(!std::char_traits::lt('a', 'a')); + assert(!std::char_traits::lt('A', 'A')); + assert(!std::char_traits::lt('5', '5')); + + assert(std::char_traits::lt('C', 'G')); + assert(std::char_traits::lt('c', 'g')); return 0; } Index: libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/lt.pass.cpp =================================================================== --- libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/lt.pass.cpp +++ libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/lt.pass.cpp @@ -19,8 +19,22 @@ int main(int, char**) { - assert(!std::char_traits::lt(L'a', L'a')); - assert( std::char_traits::lt(L'A', L'a')); + assert(std::char_traits::lt(L'\0', L'A')); + assert(!std::char_traits::lt(L'A', L'\0')); + + assert(std::char_traits::lt(L'A', L'a') == (static_cast(L'A') < static_cast(L'a'))); + assert(std::char_traits::lt(L'A', L'a') == !std::char_traits::lt(L'a', L'A')); + + assert(std::char_traits::lt(L'0', L'9')); + assert(std::char_traits::lt(L'a', L'z')); + assert(std::char_traits::lt(L'A', L'Z')); + + assert(!std::char_traits::lt(L'a', L'a')); + assert(!std::char_traits::lt(L'A', L'A')); + assert(!std::char_traits::lt(L'5', L'5')); + + assert(std::char_traits::lt(L'C', L'G')); + assert(std::char_traits::lt(L'c', L'g')); return 0; }