summaryrefslogtreecommitdiff
path: root/test/unit/expr/node_black.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/expr/node_black.h')
-rw-r--r--test/unit/expr/node_black.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/expr/node_black.h b/test/unit/expr/node_black.h
index 0693b48db..102549c42 100644
--- a/test/unit/expr/node_black.h
+++ b/test/unit/expr/node_black.h
@@ -160,9 +160,11 @@ public:
void testOperatorSquare() {
/*Node operator[](int i) const */
+#ifdef CVC4_ASSERTIONS
//Basic bounds check on a node w/out children
TS_ASSERT_THROWS(Node::null()[-1], AssertionException);
TS_ASSERT_THROWS(Node::null()[0], AssertionException);
+#endif /* CVC4_ASSERTIONS */
//Basic access check
Node tb = d_nm->mkNode(TRUE);
@@ -177,9 +179,11 @@ public:
TS_ASSERT(tb == ite[1]);
TS_ASSERT(eb == ite[2]);
+#ifdef CVC4_ASSERTIONS
//Bounds check on a node with children
TS_ASSERT_THROWS(ite == ite[-1],AssertionException);
TS_ASSERT_THROWS(ite == ite[4],AssertionException);
+#endif /* CVC4_ASSERTIONS */
}
/*tests: Node& operator=(const Node&); */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback