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

Method testFindLastOf

test/string.cpp:2663–2676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2661 }
2662
2663 void
2664 testFindLastOf()
2665 {
2666 test_vectors const t;
2667 string const s1 = t.v1;
2668
2669 // find_last_of(string_view, size_type)
2670 BOOST_TEST(s1.find_last_of("bcd") == 3);
2671 BOOST_TEST(s1.find_last_of("cde") == 4);
2672
2673 BOOST_TEST(s1.find_last_of("bcd", 3) == 3);
2674 BOOST_TEST(s1.find_last_of("cde", 5) == 4);
2675 BOOST_TEST(s1.find_last_of("efg", 3) == string::npos);
2676 }
2677
2678 void
2679 testFindLastNotOf()

Callers

nothing calls this directly

Calls 1

find_last_ofMethod · 0.80

Tested by

no test coverage detected