diff options
author | Damien George <damien.p.george@gmail.com> | 2014-09-23 14:10:03 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-09-23 14:15:45 +0000 |
commit | d6230f62c785c6c1ef1797500617c33e24607980 (patch) | |
tree | df12c1f20b9c22de5b25224c4bbd4e1e89cac871 /tests/basics/containment.py | |
parent | 96e20c600f6498c403445956077f85dd2fb548aa (diff) | |
download | micropython-d6230f62c785c6c1ef1797500617c33e24607980.tar.gz micropython-d6230f62c785c6c1ef1797500617c33e24607980.zip |
py: Make native emitter handle multi-compare and not/is not/not in ops.
Diffstat (limited to 'tests/basics/containment.py')
-rw-r--r-- | tests/basics/containment.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basics/containment.py b/tests/basics/containment.py index 84d40b4e8f..f8be04e929 100644 --- a/tests/basics/containment.py +++ b/tests/basics/containment.py @@ -4,12 +4,12 @@ for i in 1, 2: print("{} not in {}: {}".format(i, o, i not in o)) haystack = "supercalifragilistc" -for needle in (haystack[i:] for i in range(len(haystack))): +for needle in [haystack[i:] for i in range(len(haystack))]: print(needle, "in", haystack, "::", needle in haystack) print(needle, "not in", haystack, "::", needle not in haystack) print(haystack, "in", needle, "::", haystack in needle) print(haystack, "not in", needle, "::", haystack not in needle) -for needle in (haystack[:i+1] for i in range(len(haystack))): +for needle in [haystack[:i+1] for i in range(len(haystack))]: print(needle, "in", haystack, "::", needle in haystack) print(needle, "not in", haystack, "::", needle not in haystack) print(haystack, "in", needle, "::", haystack in needle) |