Skip to content

Commit 3c7c22e

Browse files
committed
Expand assert statements
1 parent 0a32bbf commit 3c7c22e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • ultimatepython/data_structures

ultimatepython/data_structures/set.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def main():
2424
# You can compute exclusive multiples
2525
multiples_two_exclusive = multiples_two.difference(multiples_four)
2626
multiples_four_exclusive = multiples_four.difference(multiples_two)
27-
assert len(multiples_two_exclusive) and len(multiples_four_exclusive)
27+
assert len(multiples_two_exclusive) > 0
28+
assert len(multiples_four_exclusive) > 0
2829

2930
# Numbers in this bracket are greater than 2 * 9 and less than 4 * 10
3031
for number in multiples_four_exclusive:

0 commit comments

Comments
 (0)