Add test for unicode string

This commit is contained in:
Thomas Pelletier
2013-07-01 21:40:08 +02:00
parent 71141675e5
commit 34e1e282fa
+9
View File
@@ -309,3 +309,12 @@ func TestKeyEqualStringUnicodeEscape(t *testing.T) {
token{tokenEOF, ""},
})
}
func TestUnicodeString(t *testing.T) {
testFlow(t, "foo = \"hello ♥ world\"", []token{
token{tokenKey, "foo"},
token{tokenEqual, "="},
token{tokenString, "hello ♥ world"},
token{tokenEOF, ""},
})
}