mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 05:10:28 +02:00
unposted: test binary input using 0b
This commit is contained in:
parent
a8927bf27b
commit
62e4db10fe
2 changed files with 12 additions and 0 deletions
|
|
@ -286,3 +286,11 @@
|
|||
env SHLVL=1+RANDOM $ZTST_testdir/../Src/zsh -f -c 'print $SHLVL'
|
||||
0:Imported integer functions are not evaluated
|
||||
>2
|
||||
|
||||
print $(( 0b0 + 0b1 + 0b11 + 0b110 ))
|
||||
0:Binary input
|
||||
>10
|
||||
|
||||
print $(( 0b2 ))
|
||||
1:Binary numbers don't tend to have 2's in
|
||||
?(eval):1: bad math expression: operator expected at `2 '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue