summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-05 00:41:24 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-05 00:41:24 +0100
commitdb2e1a43707e65851ba13e3e51f791abe20e270b (patch)
tree3f3b481257c598672c17a1bbee63ab45626ef0a1
parentc89e5c5ada36a528410ad9bb44d27012da85fa96 (diff)
Changed aggregation descriptor of the Typesystem class
-rw-r--r--src/core/model/Typesystem.cpp11
-rw-r--r--test/core/model/TypesystemTest.cpp8
2 files changed, 10 insertions, 9 deletions
diff --git a/src/core/model/Typesystem.cpp b/src/core/model/Typesystem.cpp
index 24be67f..2945635 100644
--- a/src/core/model/Typesystem.cpp
+++ b/src/core/model/Typesystem.cpp
@@ -450,11 +450,12 @@ const Rtti<model::UnknownType> UnknownType{"UnknownType", {&Type}};
const Rtti<model::Constant> Constant{"Constant", {&Node}};
const Rtti<model::Attribute> Attribute{"Attribute", {&Node}};
const Rtti<model::Typesystem> Typesystem{
- "Typesystem", {&Node}, {&StructType, &EnumType, &Constant}};
-const Rtti<model::SystemTypesystem> SystemTypesystem{
- "SystemTypesystem",
- {&Typesystem},
- {&StringType, &IntType, &DoubleType, &BoolType, &EnumType}};
+ "Typesystem",
+ {&Node},
+ {&StringType, &IntType, &DoubleType, &BoolType, &EnumType, &StructType,
+ &Constant}};
+const Rtti<model::SystemTypesystem> SystemTypesystem{"SystemTypesystem",
+ {&Typesystem}};
}
}
diff --git a/test/core/model/TypesystemTest.cpp b/test/core/model/TypesystemTest.cpp
index 72762e5..12efc46 100644
--- a/test/core/model/TypesystemTest.cpp
+++ b/test/core/model/TypesystemTest.cpp
@@ -850,10 +850,10 @@ TEST(Typesystem, rtti)
Manager mgr{1};
Rooted<Typesystem> typesystem{new Typesystem{mgr, "typesystem"}};
ASSERT_TRUE(typesystem->aggregatedOf(RttiTypes::Type));
- ASSERT_FALSE(typesystem->aggregatedOf(RttiTypes::StringType));
- ASSERT_FALSE(typesystem->aggregatedOf(RttiTypes::IntType));
- ASSERT_FALSE(typesystem->aggregatedOf(RttiTypes::DoubleType));
- ASSERT_FALSE(typesystem->aggregatedOf(RttiTypes::BoolType));
+ ASSERT_TRUE(typesystem->aggregatedOf(RttiTypes::StringType));
+ ASSERT_TRUE(typesystem->aggregatedOf(RttiTypes::IntType));
+ ASSERT_TRUE(typesystem->aggregatedOf(RttiTypes::DoubleType));
+ ASSERT_TRUE(typesystem->aggregatedOf(RttiTypes::BoolType));
ASSERT_TRUE(typesystem->aggregatedOf(RttiTypes::EnumType));
ASSERT_TRUE(typesystem->aggregatedOf(RttiTypes::StructType));
ASSERT_FALSE(typesystem->aggregatedOf(RttiTypes::ArrayType));