Fixed formatting

This commit is contained in:
Bartek Kryza
2022-08-24 21:42:28 +02:00
parent e37d2d6683
commit dfd3fee444
8 changed files with 27 additions and 31 deletions

View File

@@ -76,7 +76,8 @@ TEST_CASE("t00014", "[test-case][class]")
REQUIRE_THAT(puml, IsInstantiation(_A("A<long,T>"), _A("A<long,bool>")));
REQUIRE_THAT(puml, IsInstantiation(_A("A<T,P>"), _A("A<long,T>")));
// REQUIRE_THAT(puml, !IsInstantiation(_A("A<long,T>"), _A("A<long,U>")));
// REQUIRE_THAT(puml, !IsInstantiation(_A("A<long,T>"),
// _A("A<long,U>")));
REQUIRE_THAT(
puml, IsInstantiation(_A("A<double,T>"), _A("A<double,float>")));
REQUIRE_THAT(
@@ -88,8 +89,7 @@ TEST_CASE("t00014", "[test-case][class]")
REQUIRE_THAT(puml,
IsInstantiation(_A("A<T,std::string>"), _A("A<char,std::string>")));
REQUIRE_THAT(puml,
IsInstantiation(_A("A<T,std::string>"),
_A("A<wchar_t,std::string>")));
IsInstantiation(_A("A<T,std::string>"), _A("A<wchar_t,std::string>")));
REQUIRE_THAT(puml,
IsInstantiation(_A("A<T,std::unique_ptr<std::string>>"),

View File

@@ -1,7 +1,6 @@
#include "t00048.h"
namespace clanguml {
namespace t00048
{
namespace t00048 {
}
}

View File

@@ -34,13 +34,11 @@ TEST_CASE("t00048", "[test-case][class]")
REQUIRE_THAT(puml, StartsWith("@startuml"));
REQUIRE_THAT(puml, EndsWith("@enduml\n"));
// Check if all classes exist
REQUIRE_THAT(puml, IsAbstractClass(_A("Base")));
REQUIRE_THAT(puml, IsClass(_A("A")));
REQUIRE_THAT(puml, IsClass(_A("B")));
// Check if class templates exist
REQUIRE_THAT(puml, IsAbstractClassTemplate("BaseTemplate", "T"));
REQUIRE_THAT(puml, IsClassTemplate("ATemplate", "T"));
@@ -69,7 +67,6 @@ TEST_CASE("t00048", "[test-case][class]")
// REQUIRE_THAT(puml, IsComposition(_A("R"), _A("D")));
// REQUIRE_THAT(puml, IsInstantiation(_A("ABCD::F<T>"), _A("F<int>")));
save_puml(
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
}