File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
libcxx/test/std/utilities/text_encoding/text_encoding.members/text_encoding.aliases_view Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1414
1515#include < cassert>
1616#include < ranges>
17+ #include < string_view>
1718#include < text_encoding>
1819
1920using id = std::text_encoding::id;
@@ -26,7 +27,7 @@ constexpr bool tests() {
2627 auto view1 = te.aliases ();
2728 auto view2 = te.aliases ();
2829
29- assert (view1.front () == view2.front ());
30+ assert (std::string_view ( view1.front ()) == std::string_view ( view2.front () ));
3031 }
3132
3233 // 2. An aliases_views of two text_encoding objects that represent the same ID but hold different names return the same front()
@@ -37,7 +38,7 @@ constexpr bool tests() {
3738 auto view1 = te1.aliases ();
3839 auto view2 = te2.aliases ();
3940
40- assert (view1.front () == view2.front ());
41+ assert (std::string_view ( view1.front ()) == std::string_view ( view2.front () ));
4142 }
4243
4344 // 3. An aliases_views of two text_encoding objects that represent different IDs return different front()
@@ -48,7 +49,7 @@ constexpr bool tests() {
4849 auto view1 = te1.aliases ();
4950 auto view2 = te2.aliases ();
5051
51- assert (!(view1.front () == view2.front ()));
52+ assert (!(std::string_view ( view1.front ()) == std::string_view ( view2.front () )));
5253 }
5354
5455 return true ;
You can’t perform that action at this time.
0 commit comments