Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command-line doctest #33

Open
gelisam opened this issue Aug 10, 2013 · 0 comments
Open

command-line doctest #33

gelisam opened this issue Aug 10, 2013 · 0 comments
Labels

Comments

@gelisam
Copy link
Collaborator

gelisam commented Aug 10, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant