Skip to content

Commit

Permalink
test: adjust windows project tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dich0tomy committed Feb 22, 2025
1 parent 731de69 commit f8bc5d0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/test/windows/project_dirs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ TEST_CASE("name() normalizes name for platform", "[project_dirs]")
{
using dire::Path;

REQUIRE(static_cast<Path>(dire::name("baz", "bar", "foo")) == "baz\\foo");
REQUIRE(static_cast<Path>(dire::name(" F o o", "foo", " BaZ ")) == "F o o\\BaZ");
REQUIRE(static_cast<Path>(dire::name("domain", "x", " baz -az ")) == "domain\\baz -az");
REQUIRE(static_cast<Path>(dire::name("baz", "bar", "foo")) == "bar\\foo");
REQUIRE(static_cast<Path>(dire::name("foo", " F o o", " BaZ ")) == "F o o\\BaZ");
REQUIRE(static_cast<Path>(dire::name("domain", "x", " baz -az ")) == "x\\baz -az");
}

TEST_CASE("name() respects IReallyWantMyOwnPlatformProjectName", "[project_dirs]")
Expand All @@ -24,12 +24,12 @@ TEST_CASE("Dir functions respect name", "[project_dirs]")
{
auto name = dire::name("domain", "org", " a _p - p ");

REQUIRE(dire::config_dir(name)->string().ends_with("domain\\a _p - p\\config"));
REQUIRE(dire::data_dir(name)->string().ends_with("domain\\a _p - p\\data"));
REQUIRE(dire::cache_dir(name)->string().ends_with("domain\\a _p - p\\cache"));
REQUIRE(dire::data_local_dir(name)->string().ends_with("domain\\a _p - p\\data"));
REQUIRE(dire::config_local_dir(name)->string().ends_with("domain\\a _p - p\\config"));
REQUIRE(dire::preference_dir(name)->string().ends_with("domain\\a _p - p\\config"));
REQUIRE(dire::config_dir(name)->string().ends_with("org\\a _p - p\\config"));
REQUIRE(dire::data_dir(name)->string().ends_with("org\\a _p - p\\data"));
REQUIRE(dire::cache_dir(name)->string().ends_with("org\\a _p - p\\cache"));
REQUIRE(dire::data_local_dir(name)->string().ends_with("org\\a _p - p\\data"));
REQUIRE(dire::config_local_dir(name)->string().ends_with("org\\a _p - p\\config"));
REQUIRE(dire::preference_dir(name)->string().ends_with("org\\a _p - p\\config"));

REQUIRE(not dire::runtime_dir(name));
REQUIRE(not dire::state_dir(name));
Expand Down

0 comments on commit f8bc5d0

Please # to comment.