From e35445b4e8fecde55b93a4b92037aa0adf70d6d1 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 31 Mar 2015 23:44:32 +0200 Subject: Check syntax descriptor depth --- test/core/model/OntologyTest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/core') diff --git a/test/core/model/OntologyTest.cpp b/test/core/model/OntologyTest.cpp index 21893a1..1ea1637 100644 --- a/test/core/model/OntologyTest.cpp +++ b/test/core/model/OntologyTest.cpp @@ -595,14 +595,17 @@ TEST(Descriptor, getPermittedTokens) ASSERT_EQ(Tokens::Empty, stxs[0].open); ASSERT_EQ(Tokens::Newline, stxs[0].close); ASSERT_EQ(Tokens::Empty, stxs[0].shortForm); + ASSERT_EQ(0, stxs[0].depth); ASSERT_EQ(A, stxs[1].descriptor); ASSERT_EQ(Tokens::Indent, stxs[1].open); ASSERT_EQ(Tokens::Dedent, stxs[1].close); ASSERT_EQ(1, stxs[1].shortForm); + ASSERT_EQ(0, stxs[1].depth); ASSERT_EQ(A_anno, stxs[2].descriptor); ASSERT_EQ(7, stxs[2].open); ASSERT_EQ(8, stxs[2].close); ASSERT_EQ(Tokens::Empty, stxs[2].shortForm); + ASSERT_EQ(-1, stxs[2].depth); } TEST(StructuredClass, isSubclassOf) -- cgit v1.2.3