From a4061f306ab491654e44b9f36cd4d94b4570fe4f Mon Sep 17 00:00:00 2001 From: John Barton Date: Fri, 24 Sep 2021 20:58:07 +1000 Subject: [PATCH] When tests fail, show source version of string (inc special chars) --- godotenv_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godotenv_test.go b/godotenv_test.go index f5820b6..28192c0 100644 --- a/godotenv_test.go +++ b/godotenv_test.go @@ -35,7 +35,7 @@ func loadEnvAndCompareValues(t *testing.T, loader func(files ...string) error, e envValue := os.Getenv(k) v := expectedValues[k] if envValue != v { - t.Errorf("Mismatch for key '%v': expected '%v' got '%v'", k, v, envValue) + t.Errorf("Mismatch for key '%v': expected '%#v' got '%#v'", k, v, envValue) } } }