diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-08-21 17:41:19 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-08-21 17:41:19 -0500 |
commit | b1972c1c3e57474f49da2d0064bfe3ccd08dcb4a (patch) | |
tree | 66c200fb70953a1b0aace64bb5def311f75f0ef8 /test_six.py | |
parent | 0739fc05e28ec29df1fb2af5cb6747920c4790cd (diff) | |
parent | a4f707f463b8e80d23f09bea707f534aae48e325 (diff) | |
download | six-b1972c1c3e57474f49da2d0064bfe3ccd08dcb4a.tar.gz |
Merged in jaraco/six (pull request #13)
Add six.moves support for filterfalse
Diffstat (limited to 'test_six.py')
-rw-r--r-- | test_six.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test_six.py b/test_six.py index e2131e7..38bd0e5 100644 --- a/test_six.py +++ b/test_six.py @@ -104,6 +104,13 @@ def test_filter(): assert six.advance_iterator(f) == 1 +def test_filter_false(): + from six.moves import filterfalse + f = filterfalse(lambda x: x % 3, range(10)) + assert six.advance_iterator(f) == 0 + assert six.advance_iterator(f) == 3 + assert six.advance_iterator(f) == 6 + def test_map(): from six.moves import map assert six.advance_iterator(map(lambda x: x + 1, range(2))) == 1 |