Skip to content

Commit

Permalink
Sync pangram tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras committed Jun 8, 2024
1 parent 9483d83 commit 1b62ff0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions exercises/practice/pangram/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ description = "mixed case and punctuation"

[2577bf54-83c8-402d-a64b-a2c0f7bb213a]
description = "case insensitive"
include = false

[7138e389-83e4-4c6e-8413-1e40a0076951]
description = "a-m and A-M are 26 different characters but not a pangram"
reimplements = "2577bf54-83c8-402d-a64b-a2c0f7bb213a"
4 changes: 2 additions & 2 deletions exercises/practice/pangram/source/pangram.d
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ unittest
// Mixed case and punctuation
assert(isPangram("\"Five quacking Zephyrs jolt my wax bed\""));

// Case insensitive
assert(!isPangram("the quick brown fox jumps over with lazy FX"));
// a-m and A-M are 26 different characters but not a pangram
assert(!isPangram("abcdefghijklm ABCDEFGHIJKLM"));
}
}

0 comments on commit 1b62ff0

Please sign in to comment.