You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
385 B

9 years ago
#include <Catch/catch.hpp>
#include <config.hpp>
SCENARIO("The configuration have default properties") {
9 years ago
tr::config config;
9 years ago
REQUIRE_FALSE(config.default_download_dir.empty());
REQUIRE_FALSE(config.root_dir.empty());
REQUIRE(config.default_download_dir == "toREST");
REQUIRE(config.http_port == 8080);
REQUIRE(config.http_threads == 1);
REQUIRE(config.ws_port == 3000);
9 years ago
}