Fixed template instantiation matching

This commit is contained in:
Bartek Kryza
2022-05-21 13:41:58 +02:00
parent 073b3d157d
commit dc26d1354d
8 changed files with 215 additions and 51 deletions

View File

@@ -1,11 +1,11 @@
#include <algorithm>
//#include <algorithm>
#include <functional>
#include <ios>
//#include <ios>
#include <map>
#include <memory>
#include <numeric>
//#include <numeric>
#include <string>
#include <type_traits>
//#include <type_traits>
#include <variant>
#include <vector>

View File

@@ -44,6 +44,16 @@ TEST_CASE("t00019", "[test-case][class]")
IsBaseClass(
_A("Layer2<Layer3<Base>>"), _A("Layer1<Layer2<Layer3<Base>>>")));
REQUIRE_THAT(puml,
IsAggregation(_A("A"), _A("Layer1<Layer2<Layer3<Base>>>"), "+layers"));
REQUIRE_THAT(
puml, !IsAggregation(_A("A"), _A("Layer2<Layer3<Base>>"), "+layers"));
REQUIRE_THAT(puml, !IsAggregation(_A("A"), _A("Layer3<Base>"), "+layers"));
REQUIRE_THAT(puml, !IsAggregation(_A("A"), _A("Base"), "+layers"));
save_puml(
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
}