Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Unit Tests as Documentation. Parent comment
> returns a sum of reciprocals of inputs
Unit Test:
assert_eq(foo(2, 5), 1/2 + 1/5) assert_eq(foo(4, 7), 1/4 + 1/7) assert_eq(foo(10, 100, 10000), 0.1101)
There are no comments on this comment yet.
> returns a sum of reciprocals of inputs
Unit Test: