diff --git a/godotenv_test.go b/godotenv_test.go index 8e75092..bbbd658 100644 --- a/godotenv_test.go +++ b/godotenv_test.go @@ -361,7 +361,7 @@ func TestWrite(t *testing.T) { //but single quotes are left alone writeAndCompare(`key=va'lu'e`, `key="va'lu'e"`) // 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 writeAndCompare("foo=bar\nbaz=buzz", "baz=\"buzz\"\nfoo=\"bar\"")