Navigation Menu

Skip to content

Commit

Permalink
bq: support multi phrase in a string
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 6, 2012
1 parent 6f91758 commit 8307221
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/bq-translator.test.js
Expand Up @@ -228,10 +228,14 @@ suite('BoolanQueryTranslator', function() {
"'keyword*' 'other keyword'",
"'keyword*'".length,
"field @^ \"keyword\"");
testExpression("value only: stirng: phrase",
testExpression("value only: stirng: phrase: one",
"'\"keyword1 keyword2\"' 'other keyword'",
"'\"keyword1 keyword2\"'".length,
"field @ \"keyword1 keyword2\"");
testExpression("value only: stirng: phrase: multi",
"'\"keyword1 keyword2\"|\"keyword3\"' 'other keyword'",
"'\"keyword1 keyword2\"|\"keyword3\"'".length,
"field @ \"keyword1 keyword2\" || field @ \"keyword3\"");
testExpression("value only: unsigned integer",
"29 75",
"29".length,
Expand Down

0 comments on commit 8307221

Please sign in to comment.