Fix test, `$` should not be escaped

pull/47/head
Takumasa Sakao 2017-11-20 23:41:46 +09:00
parent 50c29652a0
commit 2707e9ff66
1 changed files with 1 additions and 1 deletions

View File

@ -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\"")