diff options
author | Andrew Scheller <github@loowis.durge.org> | 2014-04-08 02:42:50 +0100 |
---|---|---|
committer | Andrew Scheller <github@loowis.durge.org> | 2014-04-08 02:42:50 +0100 |
commit | 12968fb6b24fa3e28e4b4f9cb7928579a9477318 (patch) | |
tree | 09e58e7b74e6aa25250c3463a9df3609dc7753ca /tests/basics | |
parent | 72d70cb0455c61ee963d9063bd42a8b0f6c80789 (diff) | |
download | micropython-12968fb6b24fa3e28e4b4f9cb7928579a9477318.tar.gz micropython-12968fb6b24fa3e28e4b4f9cb7928579a9477318.zip |
Display \r and \t escape codes in string repr
Diffstat (limited to 'tests/basics')
-rw-r--r-- | tests/basics/string-repr.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/string-repr.py b/tests/basics/string-repr.py new file mode 100644 index 0000000000..ba8dbe6d1c --- /dev/null +++ b/tests/basics/string-repr.py @@ -0,0 +1,3 @@ +# anything above 0xa0 is printed as Unicode by CPython3.3 +for c in range(0xa1): + print("0x%02x: %s" % (c, repr(chr(c)))) |