Finish shell of OldPQL test

This commit is contained in:
Alan Bernstein 2018-06-22 08:36:03 -05:00
parent 35526dd0d7
commit ac66e51a1f

View file

@ -297,9 +297,7 @@ func TestExecutor_Execute_Set(t *testing.T) {
}
// Ensure old PQL syntax doesn't break anything too badly.
func TestExecutor_Execute_OldSetBit(t *testing.T) {
return
// TODO
func TestExecutor_Execute_OldPQL(t *testing.T) {
hldr := test.MustOpenHolder()
defer hldr.Close()
@ -308,12 +306,8 @@ func TestExecutor_Execute_OldSetBit(t *testing.T) {
e := test.NewExecutor(hldr.Holder, pilosa.NewTestCluster(1))
if res, err := e.Execute(context.Background(), "i", test.MustParse(`SetBit(frame=f, row=11, col=1)`), nil, nil); err != nil {
t.Fatal(err)
} else {
if !res[0].(bool) {
t.Fatalf("expected column changed")
}
if _, err := e.Execute(context.Background(), "i", test.MustParse(`SetBit(frame=f, row=11, col=1)`), nil, nil); err == nil || err.Error() != "unknown call: SetBit" {
t.Fatal("Expected error: 'unknown call: SetBit'")
}
}