MCPcopy Create free account
hub / github.com/daniele77/cli / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

test/test_split.cpp:41–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39BOOST_AUTO_TEST_SUITE(SplitSuite)
40
41BOOST_AUTO_TEST_CASE(OddCases)
42{
43 VS strs;
44
45 split(strs, ""); // empty
46 BOOST_CHECK_EQUAL(strs.size(), 0);
47
48 split(strs, " "); // one space
49 BOOST_CHECK_EQUAL(strs.size(), 0);
50
51 split(strs, " "); // two spaces
52 BOOST_CHECK_EQUAL(strs.size(), 0);
53
54 split(strs, " "); // three spaces
55 BOOST_CHECK_EQUAL(strs.size(), 0);
56
57 split(strs, "\t"); // one tab
58 BOOST_CHECK_EQUAL(strs.size(), 0);
59
60 split(strs, "\t\t"); // two tabs
61 BOOST_CHECK_EQUAL(strs.size(), 0);
62
63 split(strs, " \t \t "); // tabs and spaces
64 BOOST_CHECK_EQUAL(strs.size(), 0);
65}
66
67BOOST_AUTO_TEST_CASE(StandardCases)
68{

Callers

nothing calls this directly

Calls 1

splitFunction · 0.85

Tested by

no test coverage detected