Added root namespace test case

This commit is contained in:
Bartek Kryza
2022-06-18 17:53:42 +02:00
parent c82002e8ee
commit 87d381f52a
6 changed files with 113 additions and 0 deletions

View File

@@ -33,6 +33,11 @@ TEST_CASE("Test split", "[unit-test]")
CHECK(split("", " ") == C{""});
CHECK(split("ABCD", " ") == C{"ABCD"});
CHECK(split("::A", "::") == C{"A"});
CHECK(split("::", "::") == C{});
CHECK(split("A::", "::") == C{"A"});
CHECK(split(":1", ":") == C{"1"});
CHECK(split(":1", ":", false) == C{"", "1"});
CHECK(split("std::vector::detail", "::") == C{"std", "vector", "detail"});