From 3fdac1e1b0de079847b842fa0675c38f13ad45bb Mon Sep 17 00:00:00 2001 From: Tom Fleet Date: Fri, 12 Jul 2024 18:36:28 +0100 Subject: [PATCH] Fix README example for File --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 09d208e..7221737 100644 --- a/README.md +++ b/README.md @@ -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