Skip to content

Commit 1722e46

Browse files
authored
Merge pull request #686 from tejasbubane/isogram-json-schema
Make isogram exercise JSON Schema compliant
2 parents 3fb1fd7 + f815088 commit 1722e46

File tree

1 file changed

+59
-38
lines changed

1 file changed

+59
-38
lines changed

exercises/isogram/canonical-data.json

Lines changed: 59 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,65 @@
11
{
2+
"exercise": "isogram",
3+
"comments": [
4+
"An isogram is a word or phrase without a repeating letter."
5+
],
6+
"version": "1.0.0",
27
"cases": [
38
{
4-
"description": "empty string",
5-
"input": "",
6-
"expected": true
7-
},
8-
{
9-
"description": "isogram with only lower case characters",
10-
"input": "isogram",
11-
"expected": true
12-
},
13-
{
14-
"description": "word with one duplicated character",
15-
"input": "eleven",
16-
"expected": false
17-
},
18-
{
19-
"description": "longest reported english isogram",
20-
"input": "subdermatoglyphic",
21-
"expected": true
22-
},
23-
{
24-
"description": "word with duplicated character in mixed case",
25-
"input": "Alphabet",
26-
"expected": false
27-
},
28-
{
29-
"description": "hypothetical isogrammic word with hyphen",
30-
"input": "thumbscrew-japingly",
31-
"expected": true
32-
},
33-
{
34-
"description": "isogram with duplicated non letter character",
35-
"input": "Hjelmqvist-Gryb-Zock-Pfund-Wax",
36-
"expected": true
37-
},
38-
{
39-
"description": "made-up name that is an isogram",
40-
"input": "Emily Jung Schwartzkopf",
41-
"expected": true
9+
"description": "Check if the given string is an isogram",
10+
"comments": [
11+
"Output should be a boolean denoting if the string is a isogram or not."
12+
],
13+
"cases": [
14+
{
15+
"description": "empty string",
16+
"property": "isIsogram",
17+
"input": "",
18+
"expected": true
19+
},
20+
{
21+
"description": "isogram with only lower case characters",
22+
"property": "isIsogram",
23+
"input": "isogram",
24+
"expected": true
25+
},
26+
{
27+
"description": "word with one duplicated character",
28+
"property": "isIsogram",
29+
"input": "eleven",
30+
"expected": false
31+
},
32+
{
33+
"description": "longest reported english isogram",
34+
"property": "isIsogram",
35+
"input": "subdermatoglyphic",
36+
"expected": true
37+
},
38+
{
39+
"description": "word with duplicated character in mixed case",
40+
"property": "isIsogram",
41+
"input": "Alphabet",
42+
"expected": false
43+
},
44+
{
45+
"description": "hypothetical isogrammic word with hyphen",
46+
"property": "isIsogram",
47+
"input": "thumbscrew-japingly",
48+
"expected": true
49+
},
50+
{
51+
"description": "isogram with duplicated non letter character",
52+
"property": "isIsogram",
53+
"input": "Hjelmqvist-Gryb-Zock-Pfund-Wax",
54+
"expected": true
55+
},
56+
{
57+
"description": "made-up name that is an isogram",
58+
"property": "isIsogram",
59+
"input": "Emily Jung Schwartzkopf",
60+
"expected": true
61+
}
62+
]
4263
}
4364
]
4465
}

0 commit comments

Comments
 (0)