forked from coop-cloud-mirrors/godotenv
Expand fixture tests to include multiline strings
This commit is contained in:
parent
dd57617d18
commit
77e8b7d7d6
@ -7,3 +7,13 @@ OPTION_F="2"
|
|||||||
OPTION_G=""
|
OPTION_G=""
|
||||||
OPTION_H="\n"
|
OPTION_H="\n"
|
||||||
OPTION_I = "echo 'asd'"
|
OPTION_I = "echo 'asd'"
|
||||||
|
OPTION_J='line 1
|
||||||
|
line 2'
|
||||||
|
OPTION_K='line one
|
||||||
|
this is \'quoted\'
|
||||||
|
one more line'
|
||||||
|
OPTION_L="line 1
|
||||||
|
line 2"
|
||||||
|
OPTION_M="line one
|
||||||
|
this is \"quoted\"
|
||||||
|
one more line"
|
||||||
|
@ -189,6 +189,10 @@ func TestLoadQuotedEnv(t *testing.T) {
|
|||||||
"OPTION_G": "",
|
"OPTION_G": "",
|
||||||
"OPTION_H": "\n",
|
"OPTION_H": "\n",
|
||||||
"OPTION_I": "echo 'asd'",
|
"OPTION_I": "echo 'asd'",
|
||||||
|
"OPTION_J": "line 1\nline 2",
|
||||||
|
"OPTION_K": "line one\nthis is \\'quoted\\'\none more line",
|
||||||
|
"OPTION_L": "line 1\nline 2",
|
||||||
|
"OPTION_M": "line one\nthis is \"quoted\"\none more line",
|
||||||
}
|
}
|
||||||
|
|
||||||
loadEnvAndCompareValues(t, Load, envFileName, expectedValues, noopPresets)
|
loadEnvAndCompareValues(t, Load, envFileName, expectedValues, noopPresets)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user