fix building Or iterator, add test

This commit is contained in:
Barak Michener 2015-10-29 17:26:21 -04:00
parent 0b91414c4b
commit 539bd9b272
2 changed files with 8 additions and 1 deletions

View file

@ -186,6 +186,13 @@ var testQueries = []struct {
`,
expect: []string{"charlie"},
},
{
message: "test Or()",
query: `
g.V("bob").Out("follows").Or(g.V().Has("status", "cool_person")).All()
`,
expect: []string{"fred", "bob", "greg", "dani"},
},
// Gremlin Has tests.
{