Skip to content

Commit cedcbed

Browse files
committed
Merge pull request #1154 from exercism/updatePrime-Factors
2 parents e086bd1 + d928874 commit cedcbed

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

exercises/prime-factors/canonical-data.json

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,64 @@
11
{
22
"exercise": "prime-factors",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"cases": [
55
{
66
"description": "returns prime factors for the given input number",
77
"cases": [
88
{
99
"description": "no factors",
1010
"property": "factors",
11-
"input": 1,
11+
"input": {
12+
"value": 1
13+
},
1214
"expected": []
1315
},
1416
{
1517
"description": "prime number",
1618
"property": "factors",
17-
"input": 2,
19+
"input": {
20+
"value": 2
21+
},
1822
"expected": [2]
1923
},
2024
{
2125
"description": "square of a prime",
2226
"property": "factors",
23-
"input": 9,
27+
"input": {
28+
"value": 9
29+
},
2430
"expected": [3, 3]
2531
},
2632
{
2733
"description": "cube of a prime",
2834
"property": "factors",
29-
"input": 8,
35+
"input": {
36+
"value": 8
37+
},
3038
"expected": [2, 2, 2]
3139
},
3240
{
3341
"description": "product of primes and non-primes",
3442
"property": "factors",
35-
"input": 12,
43+
"input": {
44+
"value": 12
45+
},
3646
"expected": [2, 2, 3]
3747
},
3848
{
3949
"description": "product of primes",
4050
"property": "factors",
41-
"input": 901255,
51+
"input": {
52+
"value": 901255
53+
},
4254
"expected": [5, 17, 23, 461]
4355
},
4456
{
4557
"description": "factors include a large prime",
4658
"property": "factors",
47-
"input": 93819012551,
59+
"input": {
60+
"value": 93819012551
61+
},
4862
"expected": [11, 9539, 894119]
4963
}
5064
]

0 commit comments

Comments
 (0)