This commit is contained in:
Oliver Davies 2020-07-12 16:54:11 +01:00
parent fee5c1afe4
commit a62c22030e
4 changed files with 38 additions and 1 deletions

19
tests/PangramTest.php Normal file
View 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,
]
]);