Skip to content

Commit

Permalink
add a super simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Dec 2, 2019
1 parent 3a2e404 commit 24a5b54
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package main

import (
"bytes"
"testing"
)

func TestRun(t *testing.T) {
stdout := new(bytes.Buffer)
run(stdout)
if stdout.String() == "" {
t.Error("got empty result")
}
}

0 comments on commit 24a5b54

Please sign in to comment.