diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-02 20:41:34 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-02 20:41:34 +0300 |
commit | ad1bac63f714550bc6e2b0a718ee155288254b7a (patch) | |
tree | 204af318487675edcf3cdcc5d577691f2f9cfd31 /tests/basics/string-format.py | |
parent | e807fa8d60483da05a3f618efb224020c9f0a86b (diff) | |
download | micropython-ad1bac63f714550bc6e2b0a718ee155288254b7a.tar.gz micropython-ad1bac63f714550bc6e2b0a718ee155288254b7a.zip |
tests/string-format: Add test for formatting ints with float format.
Fail currently.
Diffstat (limited to 'tests/basics/string-format.py')
-rw-r--r-- | tests/basics/string-format.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |