diff --git a/test/test_topo_sorter.cpp b/test/test_topo_sorter.cpp index 4560625..b7756f0 100644 --- a/test/test_topo_sorter.cpp +++ b/test/test_topo_sorter.cpp @@ -92,6 +92,15 @@ MyClass )"); } +TEST(TopoSorterTest, TemplateParamValue) { + auto myclass = Class{1, Class::Kind::Class, "MyClass", 69}; + myclass.templateParams.push_back(TemplateParam{"123"}); + + test({myclass}, R"( +MyClass +)"); +} + TEST(TopoSorterTest, Children) { auto mymember = Class{0, Class::Kind::Struct, "MyMember", 13}; auto mychild = Class{1, Class::Kind::Struct, "MyChild", 13};