mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
23 lines
544 B
C++
23 lines
544 B
C++
#include "globals.h"
|
|
#include "lib/vfs/vfs.h"
|
|
#include "snowhouse/snowhouse.h"
|
|
|
|
using namespace snowhouse;
|
|
|
|
static void testPathParsing()
|
|
{
|
|
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)
|
|
{
|
|
testPathParsing();
|
|
return 0;
|
|
}
|
|
|
|
|