Simplified Evaluate function
This commit is contained in:
parent
3d294eb35c
commit
fbcadae268
14 changed files with 318 additions and 133 deletions
|
@ -216,14 +216,14 @@ func TestDefine(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestPeriod(t *testing.T) {
|
||||
func TestDot(t *testing.T) {
|
||||
tokens := token.Tokenize([]byte(`a.b.c`))
|
||||
|
||||
expected := []token.Kind{
|
||||
token.Identifier,
|
||||
token.Period,
|
||||
token.Dot,
|
||||
token.Identifier,
|
||||
token.Period,
|
||||
token.Dot,
|
||||
token.Identifier,
|
||||
token.EOF,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue