mirror of https://github.com/apache/lucene.git
Added 2 asterisk test cases.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150967 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7865adc2dd
commit
8afe28b9f7
|
@ -57,6 +57,12 @@ function testCheckAsterisk()
|
||||||
query = "bar* *bar";
|
query = "bar* *bar";
|
||||||
assertFalse(query, checkAsterisk(query));
|
assertFalse(query, checkAsterisk(query));
|
||||||
|
|
||||||
|
query = "*";
|
||||||
|
assertFalse(query, checkAsterisk(query));
|
||||||
|
|
||||||
|
query = "*bar";
|
||||||
|
assertFalse(query, checkAsterisk(query));
|
||||||
|
|
||||||
// test with a space in front
|
// test with a space in front
|
||||||
query = " *bar";
|
query = " *bar";
|
||||||
assertFalse(query, checkAsterisk(query));
|
assertFalse(query, checkAsterisk(query));
|
||||||
|
|
Loading…
Reference in New Issue