mirror of
https://github.com/joho/godotenv.git
synced 2025-08-25 23:13:59 +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)
|
envValue := os.Getenv(k)
|
||||||
v := expectedValues[k]
|
v := expectedValues[k]
|
||||||
if envValue != v {
|
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