summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/regress/2058_1.test8
-rw-r--r--test/regress/2058_2.test11
2 files changed, 19 insertions, 0 deletions
diff --git a/test/regress/2058_1.test b/test/regress/2058_1.test
new file mode 100644
index 00000000..06043007
--- /dev/null
+++ b/test/regress/2058_1.test
@@ -0,0 +1,8 @@
+2021/1/2 Test
+ A $1.00
+ B
+
+test -p 'last %^@' bal -> 1
+__ERROR__
+Error: Invalid char '%'
+end test
diff --git a/test/regress/2058_2.test b/test/regress/2058_2.test
new file mode 100644
index 00000000..3c6c2a7e
--- /dev/null
+++ b/test/regress/2058_2.test
@@ -0,0 +1,11 @@
+2021/1/2 Test
+ A $1.00
+ B
+
+test --limit 'date>=[2020/12/31' register A -> 1
+__ERROR__
+While parsing value expression:
+ (date>=[2020/12/31)&((account =~ /A/))
+
+Error: Missing ']'
+end test