|
1 | 1 | {
|
2 | 2 | "exercise": "sum-of-multiples",
|
3 |
| - "version": "1.4.0", |
| 3 | + "version": "1.4.1", |
4 | 4 | "cases": [
|
5 | 5 | {
|
6 |
| - "description": "multiples of 3 or 5 up to 1", |
| 6 | + "description": "no multiples within limit", |
7 | 7 | "property": "sum",
|
8 | 8 | "input": {
|
9 | 9 | "factors": [3, 5],
|
|
12 | 12 | "expected": 0
|
13 | 13 | },
|
14 | 14 | {
|
15 |
| - "description": "multiples of 3 or 5 up to 4", |
| 15 | + "description": "one factor has multiples within limit", |
16 | 16 | "property": "sum",
|
17 | 17 | "input": {
|
18 | 18 | "factors": [3, 5],
|
|
21 | 21 | "expected": 3
|
22 | 22 | },
|
23 | 23 | {
|
24 |
| - "description": "multiples of 3 up to 7", |
| 24 | + "description": "more than one multiple within limit", |
25 | 25 | "property": "sum",
|
26 | 26 | "input": {
|
27 | 27 | "factors": [3],
|
|
30 | 30 | "expected": 9
|
31 | 31 | },
|
32 | 32 | {
|
33 |
| - "description": "multiples of 3 or 5 up to 10", |
| 33 | + "description": "more than one factor with multiples within limit", |
34 | 34 | "property": "sum",
|
35 | 35 | "input": {
|
36 | 36 | "factors": [3, 5],
|
|
39 | 39 | "expected": 23
|
40 | 40 | },
|
41 | 41 | {
|
42 |
| - "description": "multiples of 3 or 5 up to 100", |
| 42 | + "description": "each multiple is only counted once", |
43 | 43 | "property": "sum",
|
44 | 44 | "input": {
|
45 | 45 | "factors": [3, 5],
|
|
48 | 48 | "expected": 2318
|
49 | 49 | },
|
50 | 50 | {
|
51 |
| - "description": "multiples of 3 or 5 up to 1000", |
| 51 | + "description": "a much larger limit", |
52 | 52 | "property": "sum",
|
53 | 53 | "input": {
|
54 | 54 | "factors": [3, 5],
|
|
57 | 57 | "expected": 233168
|
58 | 58 | },
|
59 | 59 | {
|
60 |
| - "description": "multiples of 7, 13 or 17 up to 20", |
| 60 | + "description": "three factors", |
61 | 61 | "property": "sum",
|
62 | 62 | "input": {
|
63 | 63 | "factors": [7, 13, 17],
|
|
66 | 66 | "expected": 51
|
67 | 67 | },
|
68 | 68 | {
|
69 |
| - "description": "multiples of 4 or 6 up to 15", |
| 69 | + "description": "factors not relatively prime", |
70 | 70 | "property": "sum",
|
71 | 71 | "input": {
|
72 | 72 | "factors": [4, 6],
|
|
75 | 75 | "expected": 30
|
76 | 76 | },
|
77 | 77 | {
|
78 |
| - "description": "multiples of 5, 6 or 8 up to 150", |
| 78 | + "description": "some pairs of factors relatively prime and some not", |
79 | 79 | "property": "sum",
|
80 | 80 | "input": {
|
81 | 81 | "factors": [5, 6, 8],
|
|
84 | 84 | "expected": 4419
|
85 | 85 | },
|
86 | 86 | {
|
87 |
| - "description": "multiples of 5 or 25 up to 51", |
| 87 | + "description": "one factor is a multiple of another", |
88 | 88 | "property": "sum",
|
89 | 89 | "input": {
|
90 | 90 | "factors": [5, 25],
|
|
93 | 93 | "expected": 275
|
94 | 94 | },
|
95 | 95 | {
|
96 |
| - "description": "multiples of 43 or 47 up to 10000", |
| 96 | + "description": "much larger factors", |
97 | 97 | "property": "sum",
|
98 | 98 | "input": {
|
99 | 99 | "factors": [43, 47],
|
|
102 | 102 | "expected": 2203160
|
103 | 103 | },
|
104 | 104 | {
|
105 |
| - "description": "multiples of 1 up to 100", |
| 105 | + "description": "all numbers are multiples of 1", |
106 | 106 | "property": "sum",
|
107 | 107 | "input": {
|
108 | 108 | "factors": [1],
|
|
111 | 111 | "expected": 4950
|
112 | 112 | },
|
113 | 113 | {
|
114 |
| - "description": "multiples of an empty list up to 10000", |
| 114 | + "description": "no factors means an empty sum", |
115 | 115 | "property": "sum",
|
116 | 116 | "input": {
|
117 | 117 | "factors": [],
|
|
0 commit comments