Rename and implement int-able without quotes

This commit is contained in:
Andre Soares
2020-06-26 15:22:04 -03:00
parent d6ee6871f2
commit 29b5be9cdc
6 changed files with 22 additions and 13 deletions

View File

@ -445,7 +445,8 @@ func TestWrite(t *testing.T) {
writeAndCompare(`foo="\n\r\\r!"`, `foo="\n\r\\r\!"`)
// lines should be sorted
writeAndCompare("foo=bar\nbaz=buzz", "baz=\"buzz\"\nfoo=\"bar\"")
// integers should not be quoted
writeAndCompare(`key="10"`, `key=10`)
}
func TestRoundtrip(t *testing.T) {