From 8afe28b9f7cf7efab99c6e9bc95ba557bb4297b8 Mon Sep 17 00:00:00 2001 From: Kelvin Tan Date: Fri, 26 Mar 2004 07:43:10 +0000 Subject: [PATCH] Added 2 asterisk test cases. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150967 13f79535-47bb-0310-9956-ffa450edef68 --- .../javascript/queryValidator/testQueryValidator.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sandbox/contributions/javascript/queryValidator/testQueryValidator.html b/sandbox/contributions/javascript/queryValidator/testQueryValidator.html index 5c41f20cbc3..b92e1e7b85a 100644 --- a/sandbox/contributions/javascript/queryValidator/testQueryValidator.html +++ b/sandbox/contributions/javascript/queryValidator/testQueryValidator.html @@ -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));