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

Method testFindFirstOf

test/string.cpp:2629–2642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2627 }
2628
2629 void
2630 testFindFirstOf()
2631 {
2632 test_vectors const t;
2633 string const s1 = t.v1;
2634
2635 // find_first_of(string_view, size_type)
2636 BOOST_TEST(s1.find_first_of("bcd") == 1);
2637 BOOST_TEST(s1.find_first_of("cde") == 2);
2638
2639 BOOST_TEST(s1.find_first_of("bcd", 0) == 1);
2640 BOOST_TEST(s1.find_first_of("cde", 1) == 2);
2641 BOOST_TEST(s1.find_first_of("efg", 7) == string::npos);
2642 }
2643
2644 void
2645 testFindFirstNotOf()

Callers

nothing calls this directly

Calls 1

find_first_ofMethod · 0.80

Tested by

no test coverage detected