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,20 @@ 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', '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,13 @@ 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'A', L'a') == (static_cast(L'A') < static_cast(L'a'))); + assert(!std::char_traits::lt(L'a', L'a')); + assert(!std::char_traits::lt(L'A', L'A')); + assert(!std::char_traits::lt(L'1', L'1')); + assert(std::char_traits::lt(L'A', L'C')); + assert(std::char_traits::lt(L'a', L'c')); + assert(std::char_traits::lt(L'1', L'3')); return 0; }