Fix various quoted keys bugs (#400)

Fixes #396 #397 #398 #399
This commit is contained in:
x-hgg-x
2020-05-07 05:13:18 +02:00
committed by GitHub
parent c5fbd3eba6
commit 19eb8cf036
8 changed files with 82 additions and 33 deletions
+3 -3
View File
@@ -105,9 +105,9 @@ func TestBasicKeyWithUppercaseMix(t *testing.T) {
}
func TestBasicKeyWithInternationalCharacters(t *testing.T) {
testFlow(t, "héllÖ", []token{
{Position{1, 1}, tokenKey, "héllÖ"},
{Position{1, 6}, tokenEOF, ""},
testFlow(t, "'héllÖ'", []token{
{Position{1, 1}, tokenKey, "'héllÖ'"},
{Position{1, 8}, tokenEOF, ""},
})
}