selectors support for hash
Some checks failed
Build / build (push) Successful in 10m20s
Test / build (push) Failing after 16m7s

This commit is contained in:
Chuck Smith
2024-03-21 16:39:31 -04:00
parent d3471af03d
commit 66d5453ecc
8 changed files with 98 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ func TestNextToken(t *testing.T) {
"foo bar"
[1, 2];
{"foo": "bar"}
"foo \"bar\""
d.foo
`
tests := []struct {
@@ -138,7 +138,9 @@ func TestNextToken(t *testing.T) {
{token.COLON, ":"},
{token.STRING, "bar"},
{token.RBRACE, "}"},
{token.STRING, "foo \"bar\""},
{token.IDENT, "d"},
{token.DOT, "."},
{token.IDENT, "foo"},
{token.EOF, ""},
}