summaryrefslogtreecommitdiffstats
path: root/tests/src/Unit/Plugin
diff options
context:
space:
mode:
authorJoris Vercammen2015-11-09 13:04:23 (GMT)
committerJoris Vercammen2015-11-09 13:04:23 (GMT)
commitda1fcbc7557bc5295e77cb8f2b4304fd7d6d94e0 (patch)
treeea96598c5af399e4f2540c5da44233af7f77ca7e /tests/src/Unit/Plugin
parent11a509d9d54386cf69efe24675b230227cca551a (diff)
More tests for exclude specified items
Diffstat (limited to 'tests/src/Unit/Plugin')
-rw-r--r--tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php b/tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php
index 9e927e4..f3465e3 100644
--- a/tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php
+++ b/tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php
@@ -41,12 +41,13 @@ class ExcludeSpecifiedItemsProcessorTest extends UnitTestCase {
new Result('llama', 'llama', 10),
new Result('badger', 'badger', 5),
new Result('duck', 'duck', 15),
+ new Result('snbke', 'snbke', 10),
new Result('snake', 'snake', 10),
new Result('snaake', 'snaake', 10),
new Result('snaaake', 'snaaake', 10),
new Result('snaaaake', 'snaaaake', 10),
new Result('snaaaaake', 'snaaaaake', 10),
- new Result('snbke', 'snbke', 10),
+ new Result('snaaaaaake', 'snaaaaaake', 10),
];
$processor_id = 'exclude_specified_items';
@@ -155,15 +156,15 @@ class ExcludeSpecifiedItemsProcessorTest extends UnitTestCase {
return [
[
'test',
- ['llama', 'duck', 'badger', 'snake', 'snaake', 'snaaake', 'snaaaake', 'snaaaaake', 'snbke']
+ ['llama', 'duck', 'badger', 'snake', 'snaake', 'snaaake', 'snaaaake', 'snaaaaake', 'snaaaaaake', 'snbke']
],
[
'llama',
- ['badger', 'duck', 'snake', 'snaake', 'snaaake', 'snaaaake', 'snaaaaake', 'snbke']
+ ['badger', 'duck', 'snake', 'snaake', 'snaaake', 'snaaaake', 'snaaaaake', 'snaaaaaake', 'snbke']
],
[
'duck',
- ['llama', 'badger', 'snake', 'snaake', 'snaaake', 'snaaaake', 'snaaaaake', 'snbke']
+ ['llama', 'badger', 'snake', 'snaake', 'snaaake', 'snaaaake', 'snaaaaake', 'snaaaaaake', 'snbke']
],
[
'sn(.*)ke',
@@ -173,6 +174,14 @@ class ExcludeSpecifiedItemsProcessorTest extends UnitTestCase {
'sn(a*)ke',
['llama', 'duck', 'badger', 'snbke']
],
+ [
+ 'sn(a+)ke',
+ ['llama', 'duck', 'badger', 'snbke']
+ ],
+ [
+ 'sn(a{3,5})ke',
+ ['llama', 'duck', 'badger', 'snake', 'snaake', 'snaaaaaake', 'snbke']
+ ],
];
}
}