summaryrefslogtreecommitdiff
path: root/test/core/model
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/model')
-rw-r--r--test/core/model/DomainTest.cpp6
-rw-r--r--test/core/model/NodeTest.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/core/model/DomainTest.cpp b/test/core/model/DomainTest.cpp
index 60a7065..3b62b48 100644
--- a/test/core/model/DomainTest.cpp
+++ b/test/core/model/DomainTest.cpp
@@ -102,14 +102,14 @@ TEST(Descriptor, pathTo)
Rooted<StructuredClass> section = getClass("section", domain);
// get the path in between.
std::vector<Rooted<Node>> path = book->pathTo(section);
- ASSERT_EQ(1, path.size());
+ ASSERT_EQ(1U, path.size());
ASSERT_TRUE(path[0]->isa(RttiTypes::FieldDescriptor));
// get the text node.
Rooted<StructuredClass> text = getClass("text", domain);
// get the path between book and text via paragraph.
path = book->pathTo(text);
- ASSERT_EQ(3, path.size());
+ ASSERT_EQ(3U, path.size());
ASSERT_TRUE(path[0]->isa(RttiTypes::FieldDescriptor));
ASSERT_TRUE(path[1]->isa(RttiTypes::StructuredClass));
ASSERT_EQ("paragraph", path[1]->getName());
@@ -120,7 +120,7 @@ TEST(Descriptor, pathTo)
// try to get the path between book and subsection.
path = book->pathTo(subsection);
// this should be impossible.
- ASSERT_EQ(0, path.size());
+ ASSERT_EQ(0U, path.size());
}
TEST(Descriptor, pathToAdvanced)
diff --git a/test/core/model/NodeTest.cpp b/test/core/model/NodeTest.cpp
index 7300d0c..2a63acc 100644
--- a/test/core/model/NodeTest.cpp
+++ b/test/core/model/NodeTest.cpp
@@ -61,7 +61,7 @@ public:
namespace RttiTypes {
const Rtti<ousia::TestNode> TestNode =
- RttiBuilder("TestNode").parent(RttiTypes::Node).composedOf(&TestNode);
+ RttiBuilder("TestNode").parent(&RttiTypes::Node).composedOf(&TestNode);
}
TEST(Node, isRoot)