From ad1bac63f714550bc6e2b0a718ee155288254b7a Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 2 Apr 2014 20:41:34 +0300 Subject: [PATCH] tests/string-format: Add test for formatting ints with float format. Fail currently. --- tests/basics/string-format.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/basics/string-format.py b/tests/basics/string-format.py index 290030a9e3..8049c6f73b 100644 --- a/tests/basics/string-format.py +++ b/tests/basics/string-format.py @@ -58,6 +58,9 @@ test("{:10.4f}", 123.456) test("{:10.4f}", -123.456) test("{:10.4g}", 123.456) test("{:10.4g}", -123.456) +test("{:e}", 100) +test("{:f}", 200) +test("{:g}", 300) test("{:10.4E}", 123.456) test("{:10.4E}", -123.456)