summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-02 20:41:34 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-02 20:41:34 +0300
commitad1bac63f714550bc6e2b0a718ee155288254b7a (patch)
tree204af318487675edcf3cdcc5d577691f2f9cfd31
parente807fa8d60483da05a3f618efb224020c9f0a86b (diff)
downloadmicropython-ad1bac63f714550bc6e2b0a718ee155288254b7a.tar.gz
micropython-ad1bac63f714550bc6e2b0a718ee155288254b7a.zip
tests/string-format: Add test for formatting ints with float format.
Fail currently.
-rw-r--r--tests/basics/string-format.py3
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)