Skip to content

Commit 34409d9

Browse files
antmarakisdarius
authored andcommitted
Expand count tests (aimacode#494)
1 parent e3ce769 commit 34409d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def test_unique():
2121
def test_count():
2222
assert count([1, 2, 3, 4, 2, 3, 4]) == 7
2323
assert count("aldpeofmhngvia") == 14
24+
assert count([True, False, True, True, False]) == 3
25+
assert count([5 > 1, len("abc") == 3, 3+1 == 5]) == 2
2426

2527

2628
def test_product():

0 commit comments

Comments
 (0)