summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2014-11-26 20:58:36 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-11-26 20:58:36 +0000
commit62e4db10fed8f5e86f29cfc25f3364f360a66bc4 (patch)
tree60a623d8de2fac7ab453e8d9c0f0194edcb609b8
parenta8927bf27b57a1f49d525f628a97de9c1fce710b (diff)
downloadzsh-62e4db10fed8f5e86f29cfc25f3364f360a66bc4.tar.gz
zsh-62e4db10fed8f5e86f29cfc25f3364f360a66bc4.zip
unposted: test binary input using 0b
-rw-r--r--ChangeLog4
-rw-r--r--Test/C01arith.ztst8
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b56eca4f..5ee0aedde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-26 Peter Stephenson <p.w.stephenson@ntlworld.com>
+
+ * unposted: Test/C01arith.ztst: test binary input using 0b.
+
2014-11-26 Peter Stephenson <p.stephenson@samsung.com>
* 33793: Src/math.c, Src/utils.c, Doc/Zsh/arith.yo: Arithmetic
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst
index 4c55b961e..59d182a13 100644
--- a/Test/C01arith.ztst
+++ b/Test/C01arith.ztst
@@ -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 '