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

Well the fluent style is more verbose, but has the advantage of telling you more information about what went wrong. You get a report telling you that "x was not equal to y" rather than "expected true". The verbosity is way more helpful to me.


or you can use a language with macros, then a testing library can report the code being evaluated and the values in it.


Even Java has testing libraries that provide optional failure case messages with asserts to provide specific context where necessary.




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

Search: