aboutsummaryrefslogtreecommitdiff
path: root/tests/extmod
diff options
context:
space:
mode:
authorDamien George2015-09-03 23:06:18 +0100
committerDamien George2015-09-03 23:06:18 +0100
commit25afc7da0db43754f6b4373a10b66551dd3cbd57 (patch)
treee2e116af73a03aaf6e11b4b0065e5f73eb6a91af /tests/extmod
parente2aa1177986d11cbd19ab84ca41b6f0dce51ad01 (diff)
tests: Add tests to improve coverage of objstr.c.
Diffstat (limited to 'tests/extmod')
-rw-r--r--tests/extmod/ujson_dumps_extra.py5
-rw-r--r--tests/extmod/ujson_dumps_extra.py.exp1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/extmod/ujson_dumps_extra.py b/tests/extmod/ujson_dumps_extra.py
new file mode 100644
index 000000000..0e593c3e9
--- /dev/null
+++ b/tests/extmod/ujson_dumps_extra.py
@@ -0,0 +1,5 @@
+# test uPy ujson behaviour that's not valid in CPy
+
+import ujson
+
+print(ujson.dumps(b'1234'))
diff --git a/tests/extmod/ujson_dumps_extra.py.exp b/tests/extmod/ujson_dumps_extra.py.exp
new file mode 100644
index 000000000..51712af1b
--- /dev/null
+++ b/tests/extmod/ujson_dumps_extra.py.exp
@@ -0,0 +1 @@
+"1234"