Add fatal message

pull/6/head
zhangxiaoyu-zidif 2017-06-04 09:42:08 +08:00
parent 5b5b8e6390
commit 9121ee63d4
1 changed files with 2 additions and 2 deletions

View File

@ -30,13 +30,13 @@ func TestValidDir(t *testing.T) {
func TestInvalidDir(t *testing.T) {
_, err := OutDir("./nondir")
if err == nil {
t.Fatal(err)
t.Fatal("expected an error")
}
}
func TestNotDir(t *testing.T) {
_, err := OutDir("./genutils_test.go")
if err == nil {
t.Fatal(err)
t.Fatal("expected an error")
}
}