forked from coop-cloud-mirrors/godotenv
		
	Fix test, $ should not be escaped
				
					
				
			This commit is contained in:
		@ -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\"")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user