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:
Kelvin Tan 2004-03-26 07:43:10 +00:00
parent 7865adc2dd
commit 8afe28b9f7
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ function testCheckAsterisk()
query = "bar* *bar";
assertFalse(query, checkAsterisk(query));
query = "*";
assertFalse(query, checkAsterisk(query));
query = "*bar";
assertFalse(query, checkAsterisk(query));
// test with a space in front
query = " *bar";
assertFalse(query, checkAsterisk(query));