| 6 | using namespace snowhouse; |
| 7 | |
| 8 | static void testPathParsing() |
| 9 | { |
| 10 | AssertThat(Path(""), Equals(std::vector<std::string>{})); |
| 11 | AssertThat(Path("/"), Equals(std::vector<std::string>{})); |
| 12 | AssertThat(Path("one"), Equals(std::vector<std::string>{"one"})); |
| 13 | AssertThat(Path("one/two"), Equals(std::vector<std::string>{"one", "two"})); |
| 14 | AssertThat( |
| 15 | Path("/one/two"), Equals(std::vector<std::string>{"one", "two"})); |
| 16 | } |
| 17 | |
| 18 | static void testPathParenthood() |
| 19 | { |