File tree 1 file changed +22
-8
lines changed 1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"exercise" : " prime-factors" ,
3
- "version" : " 1.0 .0" ,
3
+ "version" : " 1.1 .0" ,
4
4
"cases" : [
5
5
{
6
6
"description" : " returns prime factors for the given input number" ,
7
7
"cases" : [
8
8
{
9
9
"description" : " no factors" ,
10
10
"property" : " factors" ,
11
- "input" : 1 ,
11
+ "input" : {
12
+ "value" : 1
13
+ },
12
14
"expected" : []
13
15
},
14
16
{
15
17
"description" : " prime number" ,
16
18
"property" : " factors" ,
17
- "input" : 2 ,
19
+ "input" : {
20
+ "value" : 2
21
+ },
18
22
"expected" : [2 ]
19
23
},
20
24
{
21
25
"description" : " square of a prime" ,
22
26
"property" : " factors" ,
23
- "input" : 9 ,
27
+ "input" : {
28
+ "value" : 9
29
+ },
24
30
"expected" : [3 , 3 ]
25
31
},
26
32
{
27
33
"description" : " cube of a prime" ,
28
34
"property" : " factors" ,
29
- "input" : 8 ,
35
+ "input" : {
36
+ "value" : 8
37
+ },
30
38
"expected" : [2 , 2 , 2 ]
31
39
},
32
40
{
33
41
"description" : " product of primes and non-primes" ,
34
42
"property" : " factors" ,
35
- "input" : 12 ,
43
+ "input" : {
44
+ "value" : 12
45
+ },
36
46
"expected" : [2 , 2 , 3 ]
37
47
},
38
48
{
39
49
"description" : " product of primes" ,
40
50
"property" : " factors" ,
41
- "input" : 901255 ,
51
+ "input" : {
52
+ "value" : 901255
53
+ },
42
54
"expected" : [5 , 17 , 23 , 461 ]
43
55
},
44
56
{
45
57
"description" : " factors include a large prime" ,
46
58
"property" : " factors" ,
47
- "input" : 93819012551 ,
59
+ "input" : {
60
+ "value" : 93819012551
61
+ },
48
62
"expected" : [11 , 9539 , 894119 ]
49
63
}
50
64
]
You can’t perform that action at this time.
0 commit comments