Add getter/setter for the style

This commit is contained in:
Simon Hausmann 2021-03-19 17:17:57 +01:00
parent 59d6866b13
commit fd9d154b27
3 changed files with 44 additions and 0 deletions

View file

@ -259,6 +259,13 @@ SCENARIO("Component Compiler")
REQUIRE(out_paths[1] == "path2");
}
SECTION("configure style")
{
REQUIRE(compiler.style() == "");
compiler.set_style("ugly");
REQUIRE(compiler.style() == "ugly");
}
SECTION("Compile failure from source")
{
auto result = compiler.build_from_source("Syntax Error!!", "");