summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2017-07-29 04:33:27 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2017-07-29 04:33:27 -0500
commit08a2bc7e1151d83fbe38a8b43c00b2f822ddfe38 (patch)
treef5bdc7196036d46c4fd1a828ee3a94fe02779df8 /test
parentefd933d6cb90d094df911079960eab3121b2127e (diff)
Add support for charat in native language, minor cleanup.
Diffstat (limited to 'test')
-rw-r--r--test/regress/regress0/strings/Makefile.am3
-rw-r--r--test/regress/regress0/strings/strings-charat.cvc9
2 files changed, 11 insertions, 1 deletions
diff --git a/test/regress/regress0/strings/Makefile.am b/test/regress/regress0/strings/Makefile.am
index 5c89c8472..c47c10de0 100644
--- a/test/regress/regress0/strings/Makefile.am
+++ b/test/regress/regress0/strings/Makefile.am
@@ -88,7 +88,8 @@ TESTS = \
bug768.smt2 \
username_checker_min.smt2 \
repl-empty-sem.smt2 \
- bug799-min.smt2
+ bug799-min.smt2 \
+ strings-charat.cvc
FAILING_TESTS =
diff --git a/test/regress/regress0/strings/strings-charat.cvc b/test/regress/regress0/strings/strings-charat.cvc
new file mode 100644
index 000000000..71114d39d
--- /dev/null
+++ b/test/regress/regress0/strings/strings-charat.cvc
@@ -0,0 +1,9 @@
+% EXPECT: unsat
+
+x : STRING;
+y : STRING;
+
+ASSERT x = CONCAT( "abcd", y );
+ASSERT CHARAT(x,0) = CHARAT(x,2);
+
+CHECKSAT;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback