summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_format_modulo.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-15 17:34:47 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-15 17:34:47 +1100
commitecb4357fe1c417e7349a56affcee5e2ccdf0d421 (patch)
tree6f2a0b005d1ff3fe91f5b1970d0cba3bcc8a4eb8 /tests/basics/string_format_modulo.py
parentb154468b085dad53de8fdef09ec42c8518475556 (diff)
downloadmicropython-ecb4357fe1c417e7349a56affcee5e2ccdf0d421.tar.gz
micropython-ecb4357fe1c417e7349a56affcee5e2ccdf0d421.zip
tests/basics: Move string-modulo-format int tests to dedicated file.
Diffstat (limited to 'tests/basics/string_format_modulo.py')
-rw-r--r--tests/basics/string_format_modulo.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/basics/string_format_modulo.py b/tests/basics/string_format_modulo.py
index f00502457e..77bbcfbe36 100644
--- a/tests/basics/string_format_modulo.py
+++ b/tests/basics/string_format_modulo.py
@@ -33,38 +33,6 @@ print("%c" % 48)
print("%c" % 'a')
print("%10s" % 'abc')
print("%-10s" % 'abc')
-print("%d" % 10)
-print("%+d" % 10)
-print("% d" % 10)
-print("%d" % -10)
-print("%d" % True)
-print("%i" % -10)
-print("%i" % True)
-print("%u" % -10)
-print("%u" % True)
-print("%x" % 18)
-print("%o" % 18)
-print("%X" % 18)
-print("%#x" % 18)
-print("%#X" % 18)
-print("%#6o" % 18)
-print("%#6x" % 18)
-print("%#06x" % 18)
-
-print("%*d" % (5, 10))
-print("%*.*d" % (2, 2, 20))
-print("%*.*d" % (5, 8, 20))
-
-print(">%8.4d<" % -12)
-print(">% 8.4d<" % -12)
-print(">%+8.4d<" % 12)
-print(">%+8.4d<" % -12)
-print(">%08.4d<" % -12)
-print(">%08.4d<" % 12)
-print(">%-8.4d<" % -12)
-print(">%-08.4d<" % -12)
-print(">%-+08.4d<" % -12)
-print(">%-+08.4d<" % 12)
# Should be able to print dicts; in this case they aren't used
# to lookup keywords in formats like %(foo)s