Skip to content

Commit be843ed

Browse files
committed
Add FileSays tests
1 parent 10e0f9f commit be843ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

filet_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ func TestFileSays(t *testing.T) {
3737
"FileSays can correctly read a file.")
3838
assert.Equal(t, FileSays(t, file.Name(), []byte("nope!")), false,
3939
"FileSays can correctly tell when a file does not contain content.")
40+
41+
newT := testing.T{}
42+
FileSays(&newT, "IdontEx", []byte("hi"))
43+
assert.Equal(t, newT.Failed(), true,
44+
"FileSays should fail the testing interface")
4045
}
4146

4247
func TestExists(t *testing.T) {

0 commit comments

Comments
 (0)