MCPcopy Create free account
hub / github.com/boostorg/json / testFindLastNotOf

Method testFindLastNotOf

test/string.cpp:2678–2695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2676 }
2677
2678 void
2679 testFindLastNotOf()
2680 {
2681 test_vectors const t;
2682 string const s1 = t.v1;
2683
2684 // find_last_not_of(string_view, size_type)
2685 BOOST_TEST(s1.find_last_not_of("abc", 3) == 3);
2686 BOOST_TEST(s1.find_last_not_of("bcd", 3) == 0);
2687
2688 BOOST_TEST(s1.find_last_not_of("efg", 4) == 3);
2689 BOOST_TEST(s1.find_last_not_of("abc", 2) == string::npos);
2690
2691 // find_first_not_of(char, size_type)
2692 BOOST_TEST(s1.find_last_not_of('a', 3) == 3);
2693 BOOST_TEST(s1.find_last_not_of('e', 4) == 3);
2694 BOOST_TEST(s1.find_last_not_of('a', 0) == string::npos);
2695 }
2696
2697 void
2698 testNonMembers()

Callers

nothing calls this directly

Calls 1

find_last_not_ofMethod · 0.80

Tested by

no test coverage detected