Pangram
This commit is contained in:
parent
fee5c1afe4
commit
a62c22030e
4 changed files with 38 additions and 1 deletions
19
tests/PangramTest.php
Normal file
19
tests/PangramTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
use function App\isPangram;
|
||||
|
||||
it('determines if a string is a pangram', function (
|
||||
string $input,
|
||||
bool $expected
|
||||
) {
|
||||
assertSame($expected, isPangram($input));
|
||||
})->with([
|
||||
[
|
||||
'input' => 'hello word',
|
||||
'expected' => false,
|
||||
],
|
||||
[
|
||||
'input' => 'The quick brown fox jumps over the lazy dog',
|
||||
'expected' => true,
|
||||
]
|
||||
]);
|
Loading…
Add table
Add a link
Reference in a new issue