Improved the t30001 test case

This commit is contained in:
Bartek Kryza
2022-01-23 11:37:51 +01:00
parent 7f1db14e29
commit c0ef93cb63
2 changed files with 29 additions and 0 deletions

View File

@@ -50,6 +50,34 @@ TEST_CASE("t30001", "[test-case][package]")
REQUIRE_THAT(puml, Contains("component [AA]"));
REQUIRE_THAT(puml, Contains("component [AAA]"));
REQUIRE_THAT(puml, Equals(R"(@startuml
' t30001 test package diagram
component [A] as C_0000000561 {
component [AA] as C_0000000562 {
component [AAA] as C_0000000563 {
}
component [BBB] as C_0000000564 {
}
}
component [BB] as C_0000000565 {
}
}
component [B] as C_0000000566 {
component [AA] as C_0000000567 {
component [AAA] as C_0000000568 {
}
component [BBB] as C_0000000569 {
}
}
component [BB] as C_0000000570 {
}
}
note right of C_0000000563: A AAA note...
@enduml
)"));
save_puml(
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
}

View File

@@ -41,6 +41,7 @@
using Catch::Matchers::Contains;
using Catch::Matchers::EndsWith;
using Catch::Matchers::Equals;
using Catch::Matchers::StartsWith;
using Catch::Matchers::VectorContains;
using clanguml::cx::compilation_database;