From 2915a308fcffbded116ecb9d4bf5c297d1b521ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Tue, 16 May 2017 21:06:12 +0200 Subject: [PATCH] add config test --- toREST/tests/config_test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 toREST/tests/config_test.cpp diff --git a/toREST/tests/config_test.cpp b/toREST/tests/config_test.cpp new file mode 100644 index 0000000..77e5072 --- /dev/null +++ b/toREST/tests/config_test.cpp @@ -0,0 +1,9 @@ +#include +#include + +SCENARIO("The configuration have default properties") { + Config config; + REQUIRE_FALSE(config.default_download_dir.empty()); + REQUIRE_FALSE(config.root_dir.empty()); + REQUIRE(config.default_download_dir == "toREST"); +} \ No newline at end of file