mirror of
https://github.com/joho/godotenv.git
synced 2025-07-30 03:05:56 +00:00
When tests fail, show source version of string (inc special chars)
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user