summaryrefslogtreecommitdiff
path: root/tests/test_more.py
diff options
context:
space:
mode:
authorSass Bálint <sass.balint@nytud.hu>2021-08-11 23:14:30 +0200
committerSass Bálint <sass.balint@nytud.hu>2021-08-11 23:14:30 +0200
commit336b7ea4bacdd38c0b79654bab50a64f36ada10b (patch)
tree3569eb1bc974a2412f48004359dfa3415656e187 /tests/test_more.py
parentf5f3aff627ef9849c7887bcc6a5ab05a3ca74883 (diff)
downloadmore-itertools-336b7ea4bacdd38c0b79654bab50a64f36ada10b.tar.gz
cosmetics
Diffstat (limited to 'tests/test_more.py')
-rw-r--r--tests/test_more.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_more.py b/tests/test_more.py
index 9452937..07518a8 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -4074,7 +4074,8 @@ class MapIfTests(TestCase):
def test_with_func_else(self):
iterable = list(range(-5, 5))
- actual = list(mi.map_if(iterable, lambda x: x >= 0, lambda x: 'notneg', lambda x: 'neg'))
+ actual = list(mi.map_if(iterable, lambda x: x >= 0,
+ lambda x: 'notneg', lambda x: 'neg'))
expected = ['neg'] * 5 + ['notneg'] * 5
self.assertEqual(actual, expected)
@@ -4083,6 +4084,7 @@ class MapIfTests(TestCase):
expected = []
self.assertEqual(actual, expected)
+
class SampleTests(TestCase):
def test_unit_case(self):
"""Test against a fixed case by seeding the random module."""