diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/slang-unit-test/unit-test-decl-tree-reflection.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp b/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp index c8bd9cd02..2ceb9981b 100644 --- a/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp +++ b/tools/slang-unit-test/unit-test-decl-tree-reflection.cpp @@ -242,7 +242,6 @@ SLANG_UNIT_TEST(declTreeReflection) { auto type = compositeProgram->getLayout()->findTypeByName("MyGenericType<half>"); SLANG_CHECK(type != nullptr); - // SLANG_CHECK(type->getKind() == slang::DeclReflection::Kind::Struct); SLANG_CHECK(getTypeFullName(type) == "MyGenericType<half>"); auto funcReflection = compositeProgram->getLayout()->findFunctionByNameInType(type, "g"); SLANG_CHECK(funcReflection != nullptr); @@ -485,6 +484,12 @@ SLANG_UNIT_TEST(declTreeReflection) SLANG_CHECK(getTypeFullName(specializedMethodWithFloat->getReturnType()) == "float"); } + // Check getTypeFullName() on nested objects. + { + auto structType = compositeProgram->getLayout()->findTypeByName("MyNamespace::MyStruct"); + SLANG_CHECK(getTypeFullName(structType) == "MyNamespace.MyStruct"); + } + // Check iterators { unsigned int count = 0; |
