Fixed friend class root namespace handling

This commit is contained in:
Bartek Kryza
2022-06-22 23:11:31 +02:00
parent 934a8edbbf
commit 96534f8e42
3 changed files with 32 additions and 2 deletions

View File

@@ -58,6 +58,12 @@ TEST_CASE("t00045", "[test-case][class]")
REQUIRE_THAT(puml, IsDependency(_A("ns1::ns2::R"), _A("AA")));
REQUIRE_THAT(puml, IsFriend<Public>(_A("ns1::ns2::R"), _A("AAA")));
REQUIRE_THAT(
puml, !IsFriend<Public>(_A("ns1::ns2::R"), _A("ns1::ns2::AAA")));
// TODO:
// REQUIRE_THAT(puml, IsFriend<Public>(_A("ns1::ns2::R"), _A("AAAA<T>")));
save_puml(
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
}