diff options
Diffstat (limited to 'test/unit/api')
-rw-r--r-- | test/unit/api/solver_black.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/unit/api/solver_black.h b/test/unit/api/solver_black.h index 29e57ef63..d4082163a 100644 --- a/test/unit/api/solver_black.h +++ b/test/unit/api/solver_black.h @@ -17,6 +17,7 @@ #include <cxxtest/TestSuite.h> #include "api/cvc4cpp.h" +#include "base/configuration.h" using namespace CVC4::api; @@ -371,11 +372,18 @@ void SolverBlack::testMkConst() TS_ASSERT_THROWS_NOTHING(d_solver.mkConst(CONST_BITVECTOR, val2, val2)); // mkConst(Kind kind, uint32_t arg1, uint32_t arg2, Term arg3) const -#ifdef CVC4_USE_SYMFPU Term t1 = d_solver.mkBitVector(8); Term t2 = d_solver.mkBitVector(4); Term t3 = d_solver.mkReal(2); - TS_ASSERT_THROWS_NOTHING(d_solver.mkConst(CONST_FLOATINGPOINT, 3, 5, t1)); + if (CVC4::Configuration::isBuiltWithSymFPU()) + { + TS_ASSERT_THROWS_NOTHING(d_solver.mkConst(CONST_FLOATINGPOINT, 3, 5, t1)); + } + else + { + TS_ASSERT_THROWS(d_solver.mkConst(CONST_FLOATINGPOINT, 3, 5, t1), + CVC4ApiException&); + } TS_ASSERT_THROWS(d_solver.mkConst(CONST_FLOATINGPOINT, 0, 5, Term()), CVC4ApiException&); TS_ASSERT_THROWS(d_solver.mkConst(CONST_FLOATINGPOINT, 0, 5, t1), @@ -388,7 +396,6 @@ void SolverBlack::testMkConst() CVC4ApiException&); TS_ASSERT_THROWS(d_solver.mkConst(CONST_BITVECTOR, 3, 5, t1), CVC4ApiException&); -#endif } void SolverBlack::testMkEmptySet() |