Skip to content

Commit

Permalink
edit: Fix test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaq committed Nov 18, 2017
1 parent bce6c9f commit 87bf995
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions edit/completers_test.go
Expand Up @@ -118,3 +118,11 @@ func mkdir(dirname string, perm os.FileMode) {
panic(err)
}
}

func create(fname string, perm os.FileMode) {
f, err := os.OpenFile(fname, os.O_CREATE, perm)
if err != nil {
panic(err)
}
f.Close()
}

0 comments on commit 87bf995

Please sign in to comment.