diff --git a/tests/t20009/t20009.cc b/tests/t20009/t20009.cc index ce9ae973..50d9fa3f 100644 --- a/tests/t20009/t20009.cc +++ b/tests/t20009/t20009.cc @@ -13,13 +13,17 @@ template struct B { std::unique_ptr> a; }; +using BFloatPtr = std::shared_ptr>; + void tmain() { std::shared_ptr> bstring; auto bint = std::make_unique>(); + BFloatPtr bfloat; bstring->b("b"); bint.get()->b(42); + bfloat->b(1.0); } } } \ No newline at end of file diff --git a/tests/t20009/test_case.h b/tests/t20009/test_case.h index 9c29d06e..359e625a 100644 --- a/tests/t20009/test_case.h +++ b/tests/t20009/test_case.h @@ -42,6 +42,8 @@ TEST_CASE("t20009", "[test-case][sequence]") REQUIRE_THAT(puml, HasCall(_A("tmain()"), _A("B"), "b")); REQUIRE_THAT(puml, HasCall(_A("B"), _A("A"), "a")); + REQUIRE_THAT(puml, HasCall(_A("tmain()"), _A("B"), "b")); + REQUIRE_THAT(puml, HasCall(_A("B"), _A("A"), "a")); save_puml( "./" + config.output_directory() + "/" + diagram->name + ".puml", puml); } \ No newline at end of file