diff options
Diffstat (limited to 'tests/float/string_format.py')
-rw-r--r-- | tests/float/string_format.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/float/string_format.py b/tests/float/string_format.py index b5ff68b8ca..265efedec5 100644 --- a/tests/float/string_format.py +++ b/tests/float/string_format.py @@ -23,6 +23,10 @@ test("{:10.4F}", -123.456) test("{:10.4G}", 123.456) test("{:10.4G}", -123.456) +test("{:06e}", float("inf")) +test("{:06e}", float("-inf")) +test("{:06e}", float("nan")) + # The following fails right now #test("{:10.1}", 0.0) |