commit | 25afc7da0db43754f6b4373a10b66551dd3cbd57 | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Thu Sep 03 23:06:18 2015 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Thu Sep 03 23:06:18 2015 +0100 |
tree | e2e116af73a03aaf6e11b4b0065e5f73eb6a91af | |
parent | e2aa1177986d11cbd19ab84ca41b6f0dce51ad01 [diff] [blame] |
tests: Add tests to improve coverage of objstr.c.
diff --git a/unix/coverage.c b/unix/coverage.c index eabd009..1f52d9c 100644 --- a/unix/coverage.c +++ b/unix/coverage.c
@@ -75,6 +75,14 @@ printf("\n"); } + // str + { + printf("# str\n"); + + // intern string + printf("%d\n", MP_OBJ_IS_QSTR(mp_obj_str_intern(mp_obj_new_str("intern me", 9, false)))); + } + return mp_const_none; } MP_DEFINE_CONST_FUN_OBJ_0(extra_coverage_obj, extra_coverage);