Skip to content

Commit

Permalink
Fixed Lexer test that included bounded predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
apr94 committed Apr 11, 2017
1 parent 97e1eee commit 7b6a98b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bql/lexer/lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,16 @@ func TestValidTokenQuery(t *testing.T) {
ItemBinding, ItemLT, ItemBinding, ItemAnd, ItemNot, ItemBinding, ItemOr,
ItemBinding, ItemEQ, ItemBinding, ItemLimit, ItemLiteral, ItemSemicolon,
ItemEOF}},
{`construct {?s "foo"@[,] ?o} into ?a from ?b where {?s "foo"@[,] ?o};`, []TokenType{
ItemConstruct, ItemLBracket, ItemBinding, ItemPredicateBound, ItemBinding,
{`construct {?s "foo"@[] ?o} into ?a from ?b where {?s "foo"@[] ?o};`, []TokenType{
ItemConstruct, ItemLBracket, ItemBinding, ItemPredicate, ItemBinding,
ItemRBracket, ItemInto, ItemBinding, ItemFrom, ItemBinding, ItemWhere,
ItemLBracket, ItemBinding, ItemPredicateBound, ItemBinding, ItemRBracket,
ItemLBracket, ItemBinding, ItemPredicate, ItemBinding, ItemRBracket,
ItemSemicolon, ItemEOF}},
{`construct {_:v1 "predicate"@[] ?p.
_:v1 "object"@[,] ?o} into ?a from ?b where {?s "foo"@[,] ?o};`, []TokenType{
_:v1 "object"@[] ?o} into ?a from ?b where {?s "foo"@[] ?o};`, []TokenType{
ItemConstruct, ItemLBracket, ItemBlankNode, ItemPredicate, ItemBinding, ItemDot,
ItemBlankNode, ItemPredicateBound, ItemBinding, ItemRBracket, ItemInto, ItemBinding,
ItemFrom, ItemBinding, ItemWhere, ItemLBracket, ItemBinding, ItemPredicateBound,
ItemBlankNode, ItemPredicate, ItemBinding, ItemRBracket, ItemInto, ItemBinding,
ItemFrom, ItemBinding, ItemWhere, ItemLBracket, ItemBinding, ItemPredicate,
ItemBinding, ItemRBracket, ItemSemicolon, ItemEOF}},
}
for _, test := range table {
Expand Down

0 comments on commit 7b6a98b

Please sign in to comment.