about summary refs log tree commit diff
path: root/Test/B03print.ztst
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-05-13 10:13:42 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-05-13 10:13:42 +0200
commita93abe1170a438d45d94b3a7f924553f5cf69cee (patch)
tree95cc9a6832acc5ece693389209531eeefdc10f88 /Test/B03print.ztst
parent373efa085dcea5fe6b4539cd875b6bd8645f16fa (diff)
downloadzsh-a93abe1170a438d45d94b3a7f924553f5cf69cee.tar.gz
zsh-a93abe1170a438d45d94b3a7f924553f5cf69cee.tar.xz
zsh-a93abe1170a438d45d94b3a7f924553f5cf69cee.zip
42488: test cases for 42369 and address some issues in the code
Diffstat (limited to 'Test/B03print.ztst')
-rw-r--r--Test/B03print.ztst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst
index c65568ad9..0ef3743ce 100644
--- a/Test/B03print.ztst
+++ b/Test/B03print.ztst
@@ -86,6 +86,17 @@
 >123.45 678
 >90.1 0
 
+ nan=0 inf=1 Infinity=2
+ printf '%.1f\n' -inf Infinity Inf nan NaN -Inf -0.0
+0:infinity constants
+>-inf
+>inf
+>inf
+>nan
+>nan
+>-inf
+>-0.0
+
  print -f 'arg: %b\n' -C2 '\x41' '\x42' '\x43'
 0:override -C when -f was given
 >arg: A