Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 59 additions & 38 deletions exercises/isogram/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,65 @@
{
"exercise": "isogram",
"comments": [
"An isogram is a word or phrase without a repeating letter."
],
"version": "1.0.0",
"cases": [
{
"description": "empty string",
"input": "",
"expected": true
},
{
"description": "isogram with only lower case characters",
"input": "isogram",
"expected": true
},
{
"description": "word with one duplicated character",
"input": "eleven",
"expected": false
},
{
"description": "longest reported english isogram",
"input": "subdermatoglyphic",
"expected": true
},
{
"description": "word with duplicated character in mixed case",
"input": "Alphabet",
"expected": false
},
{
"description": "hypothetical isogrammic word with hyphen",
"input": "thumbscrew-japingly",
"expected": true
},
{
"description": "isogram with duplicated non letter character",
"input": "Hjelmqvist-Gryb-Zock-Pfund-Wax",
"expected": true
},
{
"description": "made-up name that is an isogram",
"input": "Emily Jung Schwartzkopf",
"expected": true
"description": "Check if the given string is an isogram",
"comments": [
"Output should be a boolean denoting if the string is a isogram or not."
],
"cases": [
{
"description": "empty string",
"property": "isIsogram",
"input": "",
"expected": true
},
{
"description": "isogram with only lower case characters",
"property": "isIsogram",
"input": "isogram",
"expected": true
},
{
"description": "word with one duplicated character",
"property": "isIsogram",
"input": "eleven",
"expected": false
},
{
"description": "longest reported english isogram",
"property": "isIsogram",
"input": "subdermatoglyphic",
"expected": true
},
{
"description": "word with duplicated character in mixed case",
"property": "isIsogram",
"input": "Alphabet",
"expected": false
},
{
"description": "hypothetical isogrammic word with hyphen",
"property": "isIsogram",
"input": "thumbscrew-japingly",
"expected": true
},
{
"description": "isogram with duplicated non letter character",
"property": "isIsogram",
"input": "Hjelmqvist-Gryb-Zock-Pfund-Wax",
"expected": true
},
{
"description": "made-up name that is an isogram",
"property": "isIsogram",
"input": "Emily Jung Schwartzkopf",
"expected": true
}
]
}
]
}