API cleanup; you can now view file metadata.

This commit is contained in:
David Given
2022-08-25 19:37:41 +02:00
parent 0e157af8d9
commit 0cc3433d6d
13 changed files with 313 additions and 150 deletions

View File

@@ -6,11 +6,11 @@ using namespace snowhouse;
static void testPathParsing()
{
AssertThat(parsePath(""), Equals(std::vector<std::string>{}));
AssertThat(parsePath("/"), Equals(std::vector<std::string>{}));
AssertThat(parsePath("one"), Equals(std::vector<std::string>{ "one" }));
AssertThat(parsePath("one/two"), Equals(std::vector<std::string>{ "one", "two" }));
AssertThat(parsePath("/one/two"), Equals(std::vector<std::string>{ "one", "two" }));
AssertThat(Path(""), Equals(std::vector<std::string>{}));
AssertThat(Path("/"), Equals(std::vector<std::string>{}));
AssertThat(Path("one"), Equals(std::vector<std::string>{ "one" }));
AssertThat(Path("one/two"), Equals(std::vector<std::string>{ "one", "two" }));
AssertThat(Path("/one/two"), Equals(std::vector<std::string>{ "one", "two" }));
}
int main(void)