diff --git a/test/std/strings/string.view/string.view.ops/compare.pointer.pass.cpp b/test/std/strings/string.view/string.view.ops/compare.pointer.pass.cpp index 0c04ce5e4..cdddea1db 100644 --- a/test/std/strings/string.view/string.view.ops/compare.pointer.pass.cpp +++ b/test/std/strings/string.view/string.view.ops/compare.pointer.pass.cpp @@ -118,8 +118,8 @@ int main(int, char**) constexpr SV sv1; constexpr SV sv2 { "abcde", 5 }; static_assert ( sv1.compare("") == 0, "" ); - static_assert ( sv1.compare("abcde") == -1, "" ); - static_assert ( sv2.compare("") == 1, "" ); + static_assert ( sv1.compare("abcde") < 0, "" ); + static_assert ( sv2.compare("") > 0, "" ); static_assert ( sv2.compare("abcde") == 0, "" ); } #endif diff --git a/test/std/strings/string.view/string.view.ops/compare.pointer_size.pass.cpp b/test/std/strings/string.view/string.view.ops/compare.pointer_size.pass.cpp index 974e68710..3d401484d 100644 --- a/test/std/strings/string.view/string.view.ops/compare.pointer_size.pass.cpp +++ b/test/std/strings/string.view/string.view.ops/compare.pointer_size.pass.cpp @@ -444,8 +444,8 @@ int main(int, char**) constexpr SV sv1; constexpr SV sv2 { "abcde", 5 }; static_assert ( sv1.compare(0, 0, "") == 0, "" ); - static_assert ( sv1.compare(0, 0, "abcde") == -1, "" ); - static_assert ( sv2.compare(0, 2, "") == 1, "" ); + static_assert ( sv1.compare(0, 0, "abcde") < 0, "" ); + static_assert ( sv2.compare(0, 2, "") > 0, "" ); static_assert ( sv2.compare(0, 6, "abcde") == 0, "" ); } #endif diff --git a/test/std/strings/string.view/string.view.ops/compare.size_size_sv_pointer_size.pass.cpp b/test/std/strings/string.view/string.view.ops/compare.size_size_sv_pointer_size.pass.cpp index df4e7394d..73ef1ea8d 100644 --- a/test/std/strings/string.view/string.view.ops/compare.size_size_sv_pointer_size.pass.cpp +++ b/test/std/strings/string.view/string.view.ops/compare.size_size_sv_pointer_size.pass.cpp @@ -1345,7 +1345,7 @@ int main(int, char**) { constexpr SV sv1; constexpr SV sv2 { "abcdefghijklmnopqrst", 21 }; static_assert ( sv1.compare(0, 0, "abcde", 0) == 0, "" ); - static_assert ( sv1.compare(0, 0, "abcde", 1) == -1, "" ); + static_assert ( sv1.compare(0, 0, "abcde", 1) < 0, "" ); static_assert ( sv2.compare(0, 0, "abcde", 1, 0) == 0, "" ); } #endif diff --git a/test/std/strings/string.view/string.view.ops/compare.size_size_sv_size_size.pass.cpp b/test/std/strings/string.view/string.view.ops/compare.size_size_sv_size_size.pass.cpp index 56b6ec1f4..f6a21d0f1 100644 --- a/test/std/strings/string.view/string.view.ops/compare.size_size_sv_size_size.pass.cpp +++ b/test/std/strings/string.view/string.view.ops/compare.size_size_sv_size_size.pass.cpp @@ -5840,8 +5840,8 @@ int main(int, char**) { typedef std::basic_string_view> SV; constexpr SV sv1 { "abcde", 5 }; static_assert ( sv1.compare(5, 1, "", 0, 0) == 0, "" ); - static_assert ( sv1.compare(2, 4, "", 0, 0) == 1, "" ); - static_assert ( sv1.compare(2, 4, "abcde", 3, 4) == -1, "" ); + static_assert ( sv1.compare(2, 4, "", 0, 0) > 0, "" ); + static_assert ( sv1.compare(2, 4, "abcde", 3, 4) < 0, "" ); } #endif