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

Method testSubStr

test/string.cpp:2444–2458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2442 }
2443
2444 void
2445 testSubStr()
2446 {
2447 test_vectors const t;
2448 string const s1 = t.v1;
2449 string const s2 = t.v2;
2450
2451 // subview(size_type, size_type)
2452 BOOST_TEST(s1.subview() == t.v1);
2453 BOOST_TEST(s1.subview(1) == t.v1.substr(1));
2454 BOOST_TEST(s1.subview(1, 3) == t.v1.substr(1, 3));
2455 BOOST_TEST(s2.subview() == t.v2);
2456 BOOST_TEST(s2.subview(1) == t.v2.substr(1));
2457 BOOST_TEST(s2.subview(1, 3) == t.v2.substr(1, 3));
2458 }
2459
2460 void
2461 testCopy()

Callers

nothing calls this directly

Calls 1

subviewMethod · 0.80

Tested by

no test coverage detected