diff options
author | Rami Ali <flowergrass@users.noreply.github.com> | 2016-12-20 12:57:39 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-20 16:19:56 +1100 |
commit | 5d06a743035d942e9fbde924f85dd56992d97419 (patch) | |
tree | b0553284be97763716aa6696200e7b9a487f4901 /tests/basics/generator1.py | |
parent | 1e7a801e2d304b3e290b82de49c99790351f84d0 (diff) | |
download | micropython-5d06a743035d942e9fbde924f85dd56992d97419.tar.gz micropython-5d06a743035d942e9fbde924f85dd56992d97419.zip |
tests/basics: Improve test coverage for generators.
Diffstat (limited to 'tests/basics/generator1.py')
-rw-r--r-- | tests/basics/generator1.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/generator1.py b/tests/basics/generator1.py index d4028b0ce3..ea1d3b38bc 100644 --- a/tests/basics/generator1.py +++ b/tests/basics/generator1.py @@ -20,3 +20,6 @@ for val in f(3): #print(gen.__next__()) #print(gen.__next__()) #print(gen.__next__()) + +# test printing, but only the first chars that match CPython +print(repr(f(0))[0:17]) |