Y
Hacker News
new
|
ask
|
show
|
jobs
by
futureastronaut
2687 days ago
Those assertions are invariants so that the test fails with a meaningful error message rather than raising IndexError or what have you.