mirror of
https://github.com/szymon-jozef/static-site-generator.git
synced 2026-09-07 12:10:42 +02:00
added utils
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "config.hpp"
|
||||
#include "utils.hpp"
|
||||
#include <catch2/catch_all.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <string>
|
||||
@@ -14,3 +15,9 @@ TEST_CASE("Checking config file read", "[config]") {
|
||||
REQUIRE(config.general.lang == "en");
|
||||
REQUIRE(config.general.title == "Blog");
|
||||
}
|
||||
|
||||
TEST_CASE("convert_string_to_set parses inline YAML string list") {
|
||||
const std::string input = "[\"haha\", \"dupa\", \"xdd\"]";
|
||||
const std::set<std::string> output = {"haha", "dupa", "xdd"};
|
||||
REQUIRE(convert_string_to_set(input) == output);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user