From 2707e9ff66c3758b5e7342e3ee72dd183aba7aef Mon Sep 17 00:00:00 2001 From: Takumasa Sakao Date: Mon, 20 Nov 2017 23:41:46 +0900 Subject: [PATCH] Fix test, `$` should not be escaped --- godotenv_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\"")