Questions tagged [one-liner]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
294 views

How should I unit-test trivial one-liners (if at all)?

I've written this set of convenience functions which give nicer names to certain trivial one-line computations. The thing is, I don't feel I can write a test for any of them; anything I write is just "...