From 96bee20ded86dc00e7c660632c5addb515930f47 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 4 Jan 2015 01:55:55 +0100 Subject: small changes to test files --- test/core/model/DomainTest.cpp | 1 + test/core/model/TypesystemTest.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'test/core/model') 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> res = domain->resolve(std::vector{"book"}); + // First we expect the book domain. assert_path(res, 0, typeOf(), {"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 createStructTypeWithParent(Handle parent, Rooted stringType{new StringType(mgr, nullptr)}; Rooted intType{new IntType(mgr, nullptr)}; Rooted structType{StructType::createValidated( - mgr, "struct", nullptr, parent, + mgr, "struct2", nullptr, parent, NodeVector{new Attribute{mgr, "aa", stringType, "value1"}, new Attribute{mgr, "bc", intType, 42}, new Attribute{mgr, "cd", parent}}, -- cgit v1.2.3