summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-08-12 03:20:37 -0500
committerPeter Stephenson <p.stephenson@samsung.com>2018-08-13 09:36:55 +0100
commitb21a641d4c63fce45736b635314e079ae360e5b2 (patch)
tree209514304b26af7f6abf4d22235d43d473410566 /Test
parent99fd8c0fe97b6e481ea41c16c753f3033aa1b47a (diff)
downloadzsh-b21a641d4c63fce45736b635314e079ae360e5b2.tar.gz
zsh-b21a641d4c63fce45736b635314e079ae360e5b2.tar.xz
zsh-b21a641d4c63fce45736b635314e079ae360e5b2.zip
43275: Add log2 to match func
Diffstat (limited to 'Test')
-rw-r--r--Test/V03mathfunc.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/V03mathfunc.ztst b/Test/V03mathfunc.ztst
index d6b4e0987..9a297d69d 100644
--- a/Test/V03mathfunc.ztst
+++ b/Test/V03mathfunc.ztst
@@ -139,3 +139,9 @@ F:This test fails if your math library doesn't have erand48().
   print $g, $l
 0:Test Gamma function gamma and lgamma
 >1.00000, 0.00000
+
+  float -F 5 a b c
+  (( a = log2(0.5), b = log2(1.5), c = log2(99) ))
+  print -r - "$a, $b, $c"
+0:log2
+>-1.00000, 0.58496, 6.62936