summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-31 23:44:32 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:27 +0200
commite35445b4e8fecde55b93a4b92037aa0adf70d6d1 (patch)
treecf44d735596d951b652e226a8104da1531348e15
parentf1d5af1eeb96e56a2cf6fb92e1e71eeced118d81 (diff)
Check syntax descriptor depth
-rw-r--r--test/core/model/OntologyTest.cpp3
1 files changed, 3 insertions, 0 deletions
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)