diff options
Diffstat (limited to 'o3tl/qa/test-string_view.cxx')
-rw-r--r-- | o3tl/qa/test-string_view.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/o3tl/qa/test-string_view.cxx b/o3tl/qa/test-string_view.cxx index b400c9605962..c068638f800e 100644 --- a/o3tl/qa/test-string_view.cxx +++ b/o3tl/qa/test-string_view.cxx @@ -60,6 +60,7 @@ private: CPPUNIT_TEST(testStartsWithRest); CPPUNIT_TEST(testEndsWith); CPPUNIT_TEST(testEndsWithRest); + CPPUNIT_TEST(testEqualsIgnoreAsciiCase); CPPUNIT_TEST_SUITE_END(); void testStartsWith() @@ -585,6 +586,13 @@ private: CPPUNIT_ASSERT_EQUAL(u""sv, rest); } } + + void testEqualsIgnoreAsciiCase() + { + using namespace std::string_view_literals; + CPPUNIT_ASSERT(o3tl::equalsIgnoreAsciiCase(u"test"sv, u"test"sv)); + CPPUNIT_ASSERT(!o3tl::equalsIgnoreAsciiCase(u"test"sv, u"test2"sv)); + } }; CPPUNIT_TEST_SUITE_REGISTRATION(Test); |