Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because you get way better error reporting. Asserting on a boolean is just pass/fail, but with expect the runner tells you "got X, expected Y" which is way better.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: