diff options
author | Tim King <taking@cs.nyu.edu> | 2010-09-14 19:37:31 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2010-09-14 19:37:31 +0000 |
commit | ed3bc77005060a5745696519da31babd745181a7 (patch) | |
tree | 9c709913c6f8f10145ecf00833bc775ad4debb33 /test/regress/regress0/arith | |
parent | d37cfff40c4e72f476b3ee5c1eb2c0f9790fcf00 (diff) |
* added test/regress/regress0/arith for easy arithmetic regress tests.
Diffstat (limited to 'test/regress/regress0/arith')
-rw-r--r-- | test/regress/regress0/arith/Makefile.am | 28 | ||||
-rw-r--r-- | test/regress/regress0/arith/arith.01.cvc | 6 | ||||
-rw-r--r-- | test/regress/regress0/arith/arith.02.cvc | 7 | ||||
-rw-r--r-- | test/regress/regress0/arith/arith.03.cvc | 6 |
4 files changed, 47 insertions, 0 deletions
diff --git a/test/regress/regress0/arith/Makefile.am b/test/regress/regress0/arith/Makefile.am new file mode 100644 index 000000000..e4fc110b4 --- /dev/null +++ b/test/regress/regress0/arith/Makefile.am @@ -0,0 +1,28 @@ +TESTS_ENVIRONMENT = @srcdir@/../../run_regression @top_builddir@/src/main/cvc4 + +# These are run for all build profiles. +# If a test shouldn't be run in e.g. competition mode, +# put it below in "TESTS +=" +TESTS = \ + arith.01.cvc \ + arith.02.cvc + +EXTRA_DIST = $(TESTS) + +#if CVC4_BUILD_PROFILE_COMPETITION +#else +#TESTS += \ +# error.cvc +#endif +# +# and make sure to distribute it +#EXTRA_DIST += \ +# error.cvc + +# synonyms for "check" +.PHONY: regress regress0 test +regress regress0 test: check + +# do nothing in this subdir +.PHONY: regress1 regress2 regress3 +regress1 regress2 regress3: diff --git a/test/regress/regress0/arith/arith.01.cvc b/test/regress/regress0/arith/arith.01.cvc new file mode 100644 index 000000000..5b4a33bed --- /dev/null +++ b/test/regress/regress0/arith/arith.01.cvc @@ -0,0 +1,6 @@ +% EXPECT: VALID +x : REAL; +y : REAL; + +QUERY (x * y ) = (y * x); +% EXIT: 20 diff --git a/test/regress/regress0/arith/arith.02.cvc b/test/regress/regress0/arith/arith.02.cvc new file mode 100644 index 000000000..a2c93da46 --- /dev/null +++ b/test/regress/regress0/arith/arith.02.cvc @@ -0,0 +1,7 @@ +% EXPECT: VALID +x : REAL; +y : REAL; +z : REAL; + +QUERY x*(y*z) = (x*y)*z; +% EXIT: 20 diff --git a/test/regress/regress0/arith/arith.03.cvc b/test/regress/regress0/arith/arith.03.cvc new file mode 100644 index 000000000..96af458f0 --- /dev/null +++ b/test/regress/regress0/arith/arith.03.cvc @@ -0,0 +1,6 @@ +% EXPECT: VALID +x : REAL; +y : REAL; + +QUERY (x + y)*(x + y) = x*x + 2*x*y + y*y; +% EXIT: 20 |