doctests should give exit code 1 when tests fail
Issue #8: implement ¯1○.
Issue #8: implement ¯2○.
Issue #8: implement ¯3○.