about summary refs log tree commit diff
path: root/Test/C01arith.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-07-06 18:33:59 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-07-06 18:33:59 +0000
commit2c75f5b0da61fa703b0b4f9dc12143aad5e00017 (patch)
tree73890893ddc261b0d5c64fc49e88571967c49efb /Test/C01arith.ztst
parent3dc88e102e48395a7b96ec006eafae96c08db6b0 (diff)
downloadzsh-2c75f5b0da61fa703b0b4f9dc12143aad5e00017.tar.gz
zsh-2c75f5b0da61fa703b0b4f9dc12143aad5e00017.tar.xz
zsh-2c75f5b0da61fa703b0b4f9dc12143aad5e00017.zip
15291, 15292: fix bug setting scalar in math mode
Diffstat (limited to 'Test/C01arith.ztst')
-rw-r--r--Test/C01arith.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst
index c72bd5acb..c32d00209 100644
--- a/Test/C01arith.ztst
+++ b/Test/C01arith.ztst
@@ -88,3 +88,13 @@
   print ${(t)newarray} ${#newarray} ${newarray[1]}
 0:setting array elements in math context
 >array 1 2
+
+  print $(( 13 = 42 ))
+1:bad lvalue
+?ZTST_execchunk:2: lvalue required
+
+  x=/bar
+  (( x = 32 ))
+  print $x
+0:assigning to scalar which contains non-math string
+>32