mirror of https://github.com/joho/godotenv.git
Fix test, `$` should not be escaped
parent
50c29652a0
commit
2707e9ff66
|
@ -361,7 +361,7 @@ func TestWrite(t *testing.T) {
|
||||||
//but single quotes are left alone
|
//but single quotes are left alone
|
||||||
writeAndCompare(`key=va'lu'e`, `key="va'lu'e"`)
|
writeAndCompare(`key=va'lu'e`, `key="va'lu'e"`)
|
||||||
// newlines, backslashes, and some other special chars are escaped
|
// newlines, backslashes, and some other special chars are escaped
|
||||||
writeAndCompare(`foo="$ba\n\r\\r!"`, `foo="\$ba\n\r\\r\!"`)
|
writeAndCompare(`foo="\n\r\\r!"`, `foo="\n\r\\r\!"`)
|
||||||
// lines should be sorted
|
// lines should be sorted
|
||||||
writeAndCompare("foo=bar\nbaz=buzz", "baz=\"buzz\"\nfoo=\"bar\"")
|
writeAndCompare("foo=bar\nbaz=buzz", "baz=\"buzz\"\nfoo=\"bar\"")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue