Skip to content

Commit 93aa2aa

Browse files
Sync pangram (#548)
1 parent 45d9e97 commit 93aa2aa

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

exercises/practice/pangram/.meta/tests.toml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# This is an auto-generated file. Regular comments will be removed when this
2-
# file is regenerated. Regenerating will not touch any manually added keys,
3-
# so comments can be added in a "comment" key.
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
411

512
[64f61791-508e-4f5c-83ab-05de042b0149]
613
description = "empty sentence"
@@ -31,3 +38,8 @@ description = "mixed case and punctuation"
3138

3239
[2577bf54-83c8-402d-a64b-a2c0f7bb213a]
3340
description = "case insensitive"
41+
include = false
42+
43+
[7138e389-83e4-4c6e-8413-1e40a0076951]
44+
description = "a-m and A-M are 26 different characters but not a pangram"
45+
reimplements = "2577bf54-83c8-402d-a64b-a2c0f7bb213a"

exercises/practice/pangram/pangram_spec.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,8 @@ describe('pangram', function()
4949
it('should not consider non-ASCII characters to be letters', function()
5050
assert.is_false(is_pangram('äbcdefghijklmnopqrstuvwxyz'))
5151
end)
52+
53+
it('should not consider a-m and A-M to be a pangram', function()
54+
assert.is_false(is_pangram('abcdefghijklm ABCDEFGHIJKLM'))
55+
end)
5256
end)

0 commit comments

Comments
 (0)