Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Walther2013-03-12 11:56:04 -0400
committerDani Megert2013-03-12 11:57:40 -0400
commit04c4ef15a4f0dc527eb24db5f114794e397fe7b5 (patch)
tree49091dd3a372cfffa889dd88521297d2803135ac /org.eclipse.search.tests
parent0926366d519d68d9dd547f1e873c1bd5ff461370 (diff)
downloadeclipse.platform.text-04c4ef15a4f0dc527eb24db5f114794e397fe7b5.tar.gz
eclipse.platform.text-04c4ef15a4f0dc527eb24db5f114794e397fe7b5.tar.xz
eclipse.platform.text-04c4ef15a4f0dc527eb24db5f114794e397fe7b5.zip
Fixed bug 402009: Whole word API and UI should not allow to be true if regex is true
Diffstat (limited to 'org.eclipse.search.tests')
-rw-r--r--org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileSearchTests.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileSearchTests.java b/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileSearchTests.java
index bf7dbdc4d..8d59a01b3 100644
--- a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileSearchTests.java
+++ b/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/FileSearchTests.java
@@ -7,7 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
- * Christian Walther (Indel AG) - Bug 399094: Add whole word option to file search
+ * Christian Walther (Indel AG) - Bug 399094, 402009: Add whole word option to file search
*******************************************************************************/
package org.eclipse.search.tests.filesearch;
@@ -248,13 +248,6 @@ public class FileSearchTests extends TestCase {
engine.search(scope, collector, searchPattern, null);
assertEquals("Number of partial-word results", 22, collector.getNumberOfResults());
}
- {
- // regexp, whole word = true: match only nothing and non-word chars before and after
- Pattern searchPattern= PatternConstructor.createPattern("h[eio]ll", true, true, false, true);
- TestResultCollector collector= new TestResultCollector();
- engine.search(scope, collector, searchPattern, null);
- assertEquals("Number of whole-word results", 10, collector.getNumberOfResults());
- }
}

Back to the top