Fixes #32 : Ensure keys are correctly parsed

This commit is contained in:
Thomas Pelletier
2014-12-06 14:16:42 +01:00
parent 543444f747
commit 2f2f28631b
4 changed files with 20 additions and 15 deletions
+2 -2
View File
@@ -54,9 +54,9 @@ func TestSimpleKV(t *testing.T) {
// NOTE: from the BurntSushi test suite
// NOTE: this test is pure evil due to the embedded '.'
func TestSpecialKV(t *testing.T) {
tree, err := Load("~!@#$^&*()_+-`1234567890[]\\|/?><.,;: = 1")
tree, err := Load("~!@$^&*()_+-`1234567890[]\\|/?><.,;: = 1")
assertTree(t, tree, err, map[string]interface{}{
"~!@#$^&*()_+-`1234567890[]\\|/?><.,;:": int64(1),
"~!@$^&*()_+-`1234567890[]\\|/?><.,;:": int64(1),
})
}