diff --git a/tests/Unit/Value/KeywordTest.php b/tests/Unit/Value/KeywordTest.php new file mode 100644 index 0000000..ea46e87 --- /dev/null +++ b/tests/Unit/Value/KeywordTest.php @@ -0,0 +1,44 @@ +assertSame([ + 'Hello', + 'Hello%', + '%Hello', + '%Hello%', + ], (new Keyword('Hello'))->all()); + } + + /** @test */ + public function it_can_generate_lowercased_keywords() + { + $this->assertSame([ + 'hello', + 'hello%', + '%hello', + '%hello%', + ], (new Keyword('Hello'))->allLowerCased()); + } + + /** @test */ + public function it_can_generate_wildcard_keywords() + { + $this->assertSame([ + 'He%world', + ], (new Keyword('He%world'))->all()); + + + $this->assertSame([ + 'He%world', + ], (new Keyword('He*world'))->all()); + } +}