Skip to content

Commit

Permalink
Add Folder Test to Config
Browse files Browse the repository at this point in the history
  • Loading branch information
drew5494 committed Nov 21, 2021
1 parent 2eb4132 commit 016c0c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions LennahSSG/TestCases.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ TEST_CASE("Config File reader", "[config]")
REQUIRE(config.getOutput() == "build/");
REQUIRE(config.getFileType() == 1);
}
SECTION("Check config reads properly with folder input")
{
Config config;
config.readConfig("./test/testConfigFolder.json");
REQUIRE(config.getInput() == "Folder 1");
REQUIRE(config.getOutput() == "build/");
REQUIRE(config.getFileType() == 1);
}
SECTION("Check config with md input")
{
Config config;
Expand Down
7 changes: 7 additions & 0 deletions test/testConfigFolder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"input": "./Folder 1",
"output": "./build",
"stylesheet": "https://cdn.jsdelivr.net/npm/water.css@2/out/water.css",
"lang": "fr",
"test": "Stuff"
}

0 comments on commit 016c0c4

Please sign in to comment.