diff options
Diffstat (limited to 'test/unit/expr/expr_public.h')
-rw-r--r-- | test/unit/expr/expr_public.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/unit/expr/expr_public.h b/test/unit/expr/expr_public.h index 7900057e1..4849e55cb 100644 --- a/test/unit/expr/expr_public.h +++ b/test/unit/expr/expr_public.h @@ -265,9 +265,11 @@ public: void testGetType() { /* Type getType(); */ - TS_ASSERT(a_bool->getType() == d_em->booleanType()); - TS_ASSERT(b_bool->getType() == d_em->booleanType()); - TS_ASSERT_THROWS(c_bool_mult->getType(), TypeCheckingException); + TS_ASSERT(a_bool->getType(false) == d_em->booleanType()); + TS_ASSERT(a_bool->getType(true) == d_em->booleanType()); + TS_ASSERT(b_bool->getType(false) == d_em->booleanType()); + TS_ASSERT(b_bool->getType(true) == d_em->booleanType()); + TS_ASSERT_THROWS(c_bool_mult->getType(true), TypeCheckingException); // These need better support for operators // TS_ASSERT(mult_op->getType().isNull()); // TS_ASSERT(plus_op->getType().isNull()); |