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

The describe_string_calculator function (the stuff on the left-hand side of the slides) seems like a pretty bizarre way to describe the spec: all it does is define functions, some of which also define functions, but none of which is ever called, or is even callable, as far as I know (maybe with some black magic). Suppose that custom delimiters didn't work: how would this help you discover that?


The description of the video the example was taken from (http://vimeo.com/8569257) notes that the tests are done using his (Gary Bernhardt) own Mote framework (https://github.com/garybernhardt/mote)

From a quick look, it does indeed use some very black and rather... funky magic to locate and call the inner functions.




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

Search: