hawk icon indicating copy to clipboard operation
hawk copied to clipboard

command-line doctest

Open gelisam opened this issue 11 years ago • 0 comments

We can't use doctest (nor hspec, I assume) to test the behaviour of the tool on the command-line. I volunteer to write a small doctest-like tool for that. For example, if I want to check that hawk has the following behaviour:

> hawk -e [1..3]
1
2
3
> seq 3 | hawk reverse
3
2
1

I would write the test exactly as above.

gelisam avatar Aug 10 '13 17:08 gelisam