Gotta bite the bullet and add tests
Closed this issue · 4 comments
davecheney commented
I've tried to avoid this for now, but it's time to add tests. The basic idea is to create a helper function
// runTest executes the go program supplied and returns the contents of stdout, stderr, and an error which may contain status information about the result of the program.
func runTest(code string) (stdout []byte, stderr []byte, err error)
I'll take adding this testing framework.
gbbr commented
It was also at the back of my mind to write tests for this but I never knew how so I avoided it (as did you). But the above idea should make it easy using a dummy program.
gbbr commented
I think we are good for now. 👍
davecheney commented
Lovely!
On Sun, Nov 2, 2014 at 1:09 PM, Gabriel Aszalos notifications@github.com
wrote:
I think we are good for now. [image: 👍]
—
Reply to this email directly or view it on GitHub
#7 (comment).