Skip to content

Commit

Permalink
Add new Pangram tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bdukes committed Jun 17, 2016
1 parent 161e9a9 commit 3c2e561
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions exercises/pangram/PangramTests.elm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,30 @@ tests =
False
(isPangram "a quick movement of the enemy will jeopardize five gunboats")
)
, test
"another missing character 'x'"
(assertEqual
False
(isPangram "the quick brown fish jumps over the lazy dog")
)
, test
"pangram with underscores"
(assertEqual
True
(isPangram "the_quick_brown_fox_jumps_over_the_lazy_dog")
)
, test
"pangram with numbers"
(assertEqual
True
(isPangram "the 1 quick brown fox jumps over the 2 lazy dogs")
)
, test
"missing letters replaced by numbers"
(assertEqual
False
(isPangram "7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog")
)
, test
"pangram with mixed case and punctuation"
(assertEqual
Expand Down

0 comments on commit 3c2e561

Please sign in to comment.