Commit 9121ee63 authored by zhangxiaoyu-zidif's avatar zhangxiaoyu-zidif

Add fatal message

parent 5b5b8e63
......@@ -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")
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment