Skip to content

Commit cb279cd

Browse files
committed
nth-prime: Add JSON test data
1 parent 7f7160a commit cb279cd

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

nth-prime.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"#": [
3+
"The tests that expect 'false' should be implemented to raise",
4+
"an error, or indicate a failure. Implement this in a way that",
5+
"makes sense for your language."
6+
],
7+
"cases": [
8+
{
9+
"description": "first",
10+
"input": 1,
11+
"expected": 2
12+
},
13+
{
14+
"description": "second",
15+
"input": 2,
16+
"expected": 3
17+
},
18+
{
19+
"description": "sixth prime",
20+
"input": 6,
21+
"expected": 13
22+
},
23+
{
24+
"description": "big prime",
25+
"input": 10001,
26+
"expected": 104743
27+
},
28+
{
29+
"description": "weird case",
30+
"input": 0,
31+
"expected": false
32+
}
33+
]
34+
}

0 commit comments

Comments
 (0)