Skip to content

Commit ff4d314

Browse files
author
meshmote
committed
Fixed syntax for None comparisons in test block
1 parent f66d2aa commit ff4d314

File tree

1 file changed

+3
-3
lines changed
  • Students/RPerkins/session02

1 file changed

+3
-3
lines changed

Students/RPerkins/session02/ack.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ def ack(m, n):
1313
return ack(m-1, ack(m, n-1))
1414

1515
if __name__ == "__main__":
16-
assert ack(-1, 2) == None
17-
assert ack(2, -1) == None
18-
assert ack(-1, -1) == None
16+
assert ack(-1, 2) is None
17+
assert ack(2, -1) is None
18+
assert ack(-1, -1) is None
1919
assert ack(0, 0) == 1
2020
assert ack(0, 1) == 2
2121
assert ack(0, 2) == 3

0 commit comments

Comments
 (0)