HelloFSTest.ReadFile_World

geesefs-0-30-9
Aaron Jacobs 2015-02-27 15:57:32 +11:00
parent fe2f872382
commit ba8ebc7a52
1 changed files with 4 additions and 1 deletions

View File

@ -189,7 +189,10 @@ func (t *HelloFSTest) ReadFile_Dir() {
}
func (t *HelloFSTest) ReadFile_World() {
AssertTrue(false, "TODO")
slice, err := ioutil.ReadFile(path.Join(t.mfs.Dir(), "dir/world"))
AssertEq(nil, err)
ExpectEq("Hello, world!", string(slice))
}
func (t *HelloFSTest) Read_Hello() {