diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-08 12:11:40 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-08 12:11:40 +0100 |
commit | ff5639fd4230dd6c13be01288e88e9d0d4647afb (patch) | |
tree | fcd35594281d64461bbd9f11a380630cf42d8007 /tests/basics/string-repr.py | |
parent | 97790455fe10c5fb22bc3edde2b43474ce0dbaad (diff) | |
parent | 12968fb6b24fa3e28e4b4f9cb7928579a9477318 (diff) | |
download | micropython-ff5639fd4230dd6c13be01288e88e9d0d4647afb.tar.gz micropython-ff5639fd4230dd6c13be01288e88e9d0d4647afb.zip |
Merge pull request #451 from lurch/repr-fixes
Display \r and \t escape codes in string repr
Diffstat (limited to 'tests/basics/string-repr.py')
-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)))) |