summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-04 01:55:55 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-01-04 01:55:55 +0100
commit96bee20ded86dc00e7c660632c5addb515930f47 (patch)
tree623886aad3ff49a94d09b9b6f5b6b52d2ff99c16
parentab4a52cca7d2092ec990b7af1bca42fdb5056ed4 (diff)
small changes to test files
-rw-r--r--test/core/model/DomainTest.cpp1
-rw-r--r--test/core/model/TypesystemTest.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/test/core/model/DomainTest.cpp b/test/core/model/DomainTest.cpp
index 2e7f983..d8ad882 100644
--- a/test/core/model/DomainTest.cpp
+++ b/test/core/model/DomainTest.cpp
@@ -58,6 +58,7 @@ TEST(Domain, testDomainResolving)
*/
std::vector<Rooted<Managed>> res =
domain->resolve(std::vector<std::string>{"book"});
+
// First we expect the book domain.
assert_path(res, 0, typeOf<Domain>(), {"book"});
// Then the book structure.
diff --git a/test/core/model/TypesystemTest.cpp b/test/core/model/TypesystemTest.cpp
index 399edb5..ff42fe5 100644
--- a/test/core/model/TypesystemTest.cpp
+++ b/test/core/model/TypesystemTest.cpp
@@ -463,7 +463,7 @@ static Rooted<StructType> createStructTypeWithParent(Handle<StructType> parent,
Rooted<StringType> stringType{new StringType(mgr, nullptr)};
Rooted<IntType> intType{new IntType(mgr, nullptr)};
Rooted<StructType> structType{StructType::createValidated(
- mgr, "struct", nullptr, parent,
+ mgr, "struct2", nullptr, parent,
NodeVector<Attribute>{new Attribute{mgr, "aa", stringType, "value1"},
new Attribute{mgr, "bc", intType, 42},
new Attribute{mgr, "cd", parent}},