TopoSorterTest: Add test for value template params

This commit is contained in:
Alastair Robertson 2023-07-26 04:51:33 -07:00 committed by Alastair Robertson
parent 3a2cef0372
commit e5a83a3a37

View File

@ -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};