mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
21 lines
373 B
Go
21 lines
373 B
Go
package query
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestQueryParser(t *testing.T) {
|
|
Convey("Basic query parse", t, func() {
|
|
|
|
tokens := Lex("union(get(10,general), get(11,brand), get(12))")
|
|
qp := QueryParser{}
|
|
q, err := qp.Parse(tokens)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
spew.Dump(q)
|
|
})
|
|
}
|