forked from coop-cloud-mirrors/godotenv
When tests fail, show source version of string (inc special chars)
This commit is contained in:
parent
22f9782344
commit
a4061f306a
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user