mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
TopoSorterTest: Add test for value template params
This commit is contained in:
parent
3a2cef0372
commit
e5a83a3a37
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user