Fixed handling of arguments in sequence diagrams

This commit is contained in:
Bartek Kryza
2022-12-04 23:38:26 +01:00
parent 1644a201d0
commit 14c2cb6263
9 changed files with 86 additions and 74 deletions

View File

@@ -35,12 +35,14 @@ TEST_CASE("t20007", "[test-case][sequence]")
REQUIRE_THAT(puml, EndsWith("@enduml\n"));
// Check if all calls exist
REQUIRE_THAT(puml, HasCall(_A("tmain()"), _A("Adder<int,int>"), "add"));
REQUIRE_THAT(
puml, HasCall(_A("tmain()"), _A("Adder<int,float,double>"), "add"));
REQUIRE_THAT(puml,
HasCall(_A("tmain()"), _A("Adder<int,int>"), "add(int &&,int &&)"));
REQUIRE_THAT(puml,
HasCall(_A("tmain()"), _A("Adder<int,float,double>"),
"add(int &&,float &&,double &&)"));
REQUIRE_THAT(puml,
HasCall(_A("tmain()"), _A("Adder<std::string,std::string,std::string>"),
"add"));
"add(std::string &&,std::string &&,std::string &&)"));
save_puml(
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);