From 62e4db10fed8f5e86f29cfc25f3364f360a66bc4 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Wed, 26 Nov 2014 20:58:36 +0000
Subject: unposted: test binary input using 0b
---
Test/C01arith.ztst | 8 ++++++++
1 file changed, 8 insertions(+)
(limited to 'Test')
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 '
--
cgit 1.4.1