summaryrefslogtreecommitdiff
path: root/test_six.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_six.py')
-rw-r--r--test_six.py7
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