add a string test case
authorTianyi Liang <tianyi-liang@uiowa.edu>
Mon, 21 Oct 2013 14:55:34 +0000 (09:55 -0500)
committerTianyi Liang <tianyi-liang@uiowa.edu>
Mon, 21 Oct 2013 14:56:54 +0000 (09:56 -0500)
test/regress/regress0/strings/Makefile.am
test/regress/regress0/strings/loop009.smt2 [new file with mode: 0644]

index cd3116eacd1237b1ff92d3047d44153f07ed4a89..c98f37958219d611ddc64cdc98a0560328399051 100644 (file)
@@ -39,7 +39,8 @@ TESTS =       \
   loop005.smt2 \
   loop006.smt2 \
   loop007.smt2 \
-  loop008.smt2
+  loop008.smt2 \
+  loop009.smt2
 
 FAILING_TESTS =
 
diff --git a/test/regress/regress0/strings/loop009.smt2 b/test/regress/regress0/strings/loop009.smt2
new file mode 100644 (file)
index 0000000..41eab0f
--- /dev/null
@@ -0,0 +1,9 @@
+(set-logic QF_S)\r
+(set-info :status sat)\r
+\r
+(declare-fun x () String)\r
+\r
+(assert (= (str.++ x "aa") (str.++ "aa" x)))\r
+(assert (= (str.len x) 7))\r
+\r
+(check-sat)\r