diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2004-05-13 20:04:10 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-05-13 20:04:10 +0000 |
| commit | d3b14e887ea29b62d1c2d5129582629a7fe97dd9 (patch) | |
| tree | 0f33e1c570f084c92f0f97f14cedb8d02904a01a /Test/C01arith.ztst | |
| parent | 19936: zcalc temp history file name (diff) | |
| download | zsh-d3b14e887ea29b62d1c2d5129582629a7fe97dd9.tar zsh-d3b14e887ea29b62d1c2d5129582629a7fe97dd9.tar.gz zsh-d3b14e887ea29b62d1c2d5129582629a7fe97dd9.tar.bz2 zsh-d3b14e887ea29b62d1c2d5129582629a7fe97dd9.tar.lz zsh-d3b14e887ea29b62d1c2d5129582629a7fe97dd9.tar.xz zsh-d3b14e887ea29b62d1c2d5129582629a7fe97dd9.tar.zst zsh-d3b14e887ea29b62d1c2d5129582629a7fe97dd9.zip | |
19941: fix (( 3, ))
Diffstat (limited to 'Test/C01arith.ztst')
| -rw-r--r-- | Test/C01arith.ztst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index d431daae0..bace31ea9 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -110,3 +110,23 @@ print $(( )) 0:empty math parse e.g. $(( )) acts like a zero >0 + + print $(( a = )) +1:empty assignment +?(eval):1: bad math expression: operand expected at `' + + print $(( 3, )) +1:empty right hand of comma +?(eval):1: bad math expression: operand expected at `' + + print $(( 3,,4 )) +1:empty middle of comma +?(eval):1: bad math expression: operand expected at `,4 ' + + print $(( (3 + 7, 4), 5 )) +0:commas and parentheses, part 1 +>5 + + print $(( 5, (3 + 7, 4) )) +0:commas and parentheses, part 1 +>4 |
