diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2008-10-16 09:34:51 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-10-16 09:34:51 +0000 |
| commit | 3c248a0de485f42db15fc8af4f1ccec4cf583f62 (patch) | |
| tree | ab2c95476905072d0e0e8aa890f9aeedb79cbbdc /Test | |
| parent | Phil Pennock: 25854: fix Devel module completion for "perl -d:". (diff) | |
| download | zsh-3c248a0de485f42db15fc8af4f1ccec4cf583f62.tar zsh-3c248a0de485f42db15fc8af4f1ccec4cf583f62.tar.gz zsh-3c248a0de485f42db15fc8af4f1ccec4cf583f62.tar.bz2 zsh-3c248a0de485f42db15fc8af4f1ccec4cf583f62.tar.lz zsh-3c248a0de485f42db15fc8af4f1ccec4cf583f62.tar.xz zsh-3c248a0de485f42db15fc8af4f1ccec4cf583f62.tar.zst zsh-3c248a0de485f42db15fc8af4f1ccec4cf583f62.zip | |
25905: fix and test doubled-hash radix output
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/C01arith.ztst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index 5179948bd..02612bd79 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -172,3 +172,19 @@ print $(( 3 + "OK"); echo "Worked") 0:not a parse failure because not arithmetic >+ OK Worked + + fn() { + emulate -L zsh + print $(( [#16] 255 )) + print $(( [##16] 255 )) + setopt cbases + print $(( [#16] 255 )) + print $(( [##16] 255 )) + } + fn +0:doubled # in base removes radix +>16#FF +>FF +>0xFF +>FF + |
