Added test cases for JSON class generators

This commit is contained in:
Bartek Kryza
2023-03-22 01:00:04 +01:00
parent c59fbfa565
commit 491fb2b443
51 changed files with 377 additions and 29 deletions

View File

@@ -56,6 +56,14 @@ TEST_CASE("t00010", "[test-case][class]")
using namespace json;
REQUIRE(IsClassTemplate(j, "A<T,P>"));
REQUIRE(IsClassTemplate(j, "B<T>"));
REQUIRE(IsClass(j, "B<int>"));
REQUIRE(IsClass(j, "A<T,std::string>"));
REQUIRE(IsClass(j, "B<int>"));
REQUIRE(IsField(j, "C", "aintstring", "B<int>"));
save_json(config.output_directory() + "/" + diagram->name + ".json", j);
}
}