Skip to content

Commit

Permalink
Fix README example for File
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Jul 12, 2024
1 parent 7e82f43 commit 3fdac1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestSomething(t *testing.T) {

// Check against contents of a file (relative to $CWD/testdata)
// including line ending normalisation
test.File(t, "expected.txt", "hello\n")
test.File(t, "hello\n", "expected.txt")

// Just like the good old reflect.DeepEqual, but with a nicer format
test.DeepEqual(t, []string{"hello"}, []string{"world"}) // Fails
Expand Down

0 comments on commit 3fdac1e

Please sign in to comment.