Skip to content

Commit d977a55

Browse files
extra isogram test
IsogramTest.lean is generated using cd generators lake exe generator -g isogram
1 parent 111c849 commit d977a55

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"description": "26 letter name",
4+
"property": "isIsogram",
5+
"input": {
6+
"phrase": "Mamungkukumpurangkuntjunya"
7+
},
8+
"expected": false
9+
}
10+
]

exercises/practice/isogram/IsogramTest.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def isogramTests : TestSuite :=
3333
return assertFalse (Isogram.isIsogram "angola"))
3434
|>.addTest "word with duplicated character and with two hyphens" (do
3535
return assertFalse (Isogram.isIsogram "up-to-date"))
36+
|>.addTest "26 letter name" (do
37+
return assertFalse (Isogram.isIsogram "Mamungkukumpurangkuntjunya"))
3638

3739
def main : IO UInt32 := do
3840
runTestSuitesWithExitCode [isogramTests]

0 commit comments

Comments
 (0)