Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 291 Bytes
package el_test
import (
"github.com/lysu/go-el"
"github.com/stretchr/testify/assert"
"testing"
)
func TestLex(t *testing.T) {
assert := assert.New(t)
tok, err := el.Lex("abc.cc[1]")
assert.Nil(err)
assert.Len(tok, 6)
assert.Equal("[", tok[3].Val)
assert.Equal("]", tok[5].Val)
}
You can’t perform that action at this time.