Improved the t30001 test case
This commit is contained in:
@@ -50,6 +50,34 @@ TEST_CASE("t30001", "[test-case][package]")
|
|||||||
REQUIRE_THAT(puml, Contains("component [AA]"));
|
REQUIRE_THAT(puml, Contains("component [AA]"));
|
||||||
REQUIRE_THAT(puml, Contains("component [AAA]"));
|
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(
|
save_puml(
|
||||||
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@
|
|||||||
|
|
||||||
using Catch::Matchers::Contains;
|
using Catch::Matchers::Contains;
|
||||||
using Catch::Matchers::EndsWith;
|
using Catch::Matchers::EndsWith;
|
||||||
|
using Catch::Matchers::Equals;
|
||||||
using Catch::Matchers::StartsWith;
|
using Catch::Matchers::StartsWith;
|
||||||
using Catch::Matchers::VectorContains;
|
using Catch::Matchers::VectorContains;
|
||||||
using clanguml::cx::compilation_database;
|
using clanguml::cx::compilation_database;
|
||||||
|
|||||||
Reference in New Issue
Block a user