trackler 2.2.1.94 → 2.2.1.95
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/problem-specifications/exercises/anagram/canonical-data.json +1 -37
- data/tracks/crystal/exercises/hello-world/{HINTS.md → .meta/hints.md} +0 -0
- data/tracks/java/exercises/prime-factors/.meta/hints.md +58 -0
- data/tracks/java/exercises/prime-factors/README.md +62 -0
- data/tracks/java/exercises/robot-name/.meta/hints.md +58 -0
- data/tracks/java/exercises/robot-name/README.md +62 -0
- data/tracks/java/exercises/robot-simulator/src/test/java/RobotTest.java +9 -5
- data/tracks/java/exercises/run-length-encoding/.meta/hints.md +58 -0
- data/tracks/java/exercises/run-length-encoding/README.md +62 -0
- data/tracks/javascript/config/exercise_readme.go.tmpl +26 -4
- data/tracks/javascript/exercises/accumulate/README.md +16 -16
- data/tracks/javascript/exercises/acronym/README.md +15 -13
- data/tracks/javascript/exercises/all-your-base/README.md +16 -14
- data/tracks/javascript/exercises/allergies/README.md +15 -13
- data/tracks/javascript/exercises/alphametics/README.md +17 -15
- data/tracks/javascript/exercises/anagram/README.md +15 -12
- data/tracks/javascript/exercises/atbash-cipher/README.md +17 -13
- data/tracks/javascript/exercises/beer-song/README.md +17 -14
- data/tracks/javascript/exercises/binary/README.md +17 -12
- data/tracks/javascript/exercises/binary-search/README.md +15 -12
- data/tracks/javascript/exercises/binary-search-tree/README.md +15 -12
- data/tracks/javascript/exercises/bob/README.md +17 -12
- data/tracks/javascript/exercises/bowling/README.md +38 -21
- data/tracks/javascript/exercises/bracket-push/README.md +15 -12
- data/tracks/javascript/exercises/change/README.md +31 -17
- data/tracks/javascript/exercises/circular-buffer/README.md +28 -18
- data/tracks/javascript/exercises/clock/README.md +15 -12
- data/tracks/javascript/exercises/collatz-conjecture/README.md +15 -12
- data/tracks/javascript/exercises/connect/README.md +17 -16
- data/tracks/javascript/exercises/crypto-square/README.md +25 -20
- data/tracks/javascript/exercises/custom-set/README.md +15 -13
- data/tracks/javascript/exercises/diamond/README.md +21 -18
- data/tracks/javascript/exercises/difference-of-squares/README.md +16 -13
- data/tracks/javascript/exercises/diffie-hellman/README.md +15 -17
- data/tracks/javascript/exercises/etl/README.md +18 -13
- data/tracks/javascript/exercises/flatten-array/README.md +16 -14
- data/tracks/javascript/exercises/food-chain/README.md +16 -13
- data/tracks/javascript/exercises/forth/README.md +17 -18
- data/tracks/javascript/exercises/gigasecond/README.md +15 -12
- data/tracks/javascript/exercises/grade-school/README.md +15 -13
- data/tracks/javascript/exercises/grains/README.md +15 -13
- data/tracks/javascript/exercises/hamming/README.md +15 -12
- data/tracks/javascript/exercises/hello-world/README.md +15 -12
- data/tracks/javascript/exercises/hexadecimal/README.md +15 -12
- data/tracks/javascript/exercises/isbn-verifier/README.md +44 -36
- data/tracks/javascript/exercises/isogram/README.md +17 -13
- data/tracks/javascript/exercises/kindergarten-garden/README.md +28 -25
- data/tracks/javascript/exercises/largest-series-product/README.md +15 -12
- data/tracks/javascript/exercises/leap/README.md +16 -13
- data/tracks/javascript/exercises/linked-list/README.md +25 -22
- data/tracks/javascript/exercises/list-ops/README.md +15 -13
- data/tracks/javascript/exercises/luhn/README.md +22 -19
- data/tracks/javascript/exercises/matrix/README.md +21 -16
- data/tracks/javascript/exercises/meetup/README.md +31 -25
- data/tracks/javascript/exercises/minesweeper/README.md +15 -13
- data/tracks/javascript/exercises/nth-prime/README.md +15 -12
- data/tracks/javascript/exercises/nucleotide-count/README.md +23 -34
- data/tracks/javascript/exercises/ocr-numbers/README.md +21 -18
- data/tracks/javascript/exercises/octal/README.md +21 -14
- data/tracks/javascript/exercises/palindrome-products/README.md +29 -27
- data/tracks/javascript/exercises/pangram/README.md +16 -13
- data/tracks/javascript/exercises/pascals-triangle/README.md +17 -14
- data/tracks/javascript/exercises/perfect-numbers/README.md +17 -14
- data/tracks/javascript/exercises/phone-number/README.md +19 -15
- data/tracks/javascript/exercises/pig-latin/README.md +15 -12
- data/tracks/javascript/exercises/point-mutations/README.md +15 -12
- data/tracks/javascript/exercises/prime-factors/README.md +15 -12
- data/tracks/javascript/exercises/protein-translation/README.md +19 -17
- data/tracks/javascript/exercises/proverb/README.md +29 -21
- data/tracks/javascript/exercises/pythagorean-triplet/README.md +18 -15
- data/tracks/javascript/exercises/queen-attack/README.md +16 -13
- data/tracks/javascript/exercises/raindrops/README.md +15 -12
- data/tracks/javascript/exercises/reverse-string/README.md +19 -15
- data/tracks/javascript/exercises/rna-transcription/README.md +16 -13
- data/tracks/javascript/exercises/robot-name/README.md +15 -12
- data/tracks/javascript/exercises/robot-simulator/README.md +15 -12
- data/tracks/javascript/exercises/roman-numerals/README.md +16 -13
- data/tracks/javascript/exercises/run-length-encoding/README.md +19 -16
- data/tracks/javascript/exercises/saddle-points/README.md +16 -13
- data/tracks/javascript/exercises/say/README.md +15 -12
- data/tracks/javascript/exercises/scrabble-score/README.md +18 -13
- data/tracks/javascript/exercises/secret-handshake/README.md +16 -13
- data/tracks/javascript/exercises/series/README.md +15 -12
- data/tracks/javascript/exercises/sieve/README.md +15 -12
- data/tracks/javascript/exercises/simple-cipher/README.md +19 -18
- data/tracks/javascript/exercises/simple-linked-list/README.md +15 -12
- data/tracks/javascript/exercises/space-age/README.md +16 -13
- data/tracks/javascript/exercises/strain/README.md +15 -12
- data/tracks/javascript/exercises/sublist/README.md +14 -17
- data/tracks/javascript/exercises/sum-of-multiples/README.md +19 -19
- data/tracks/javascript/exercises/transpose/README.md +15 -12
- data/tracks/javascript/exercises/triangle/README.md +24 -18
- data/tracks/javascript/exercises/trinary/README.md +16 -13
- data/tracks/javascript/exercises/twelve-days/README.md +17 -16
- data/tracks/javascript/exercises/two-bucket/README.md +25 -22
- data/tracks/javascript/exercises/two-fer/README.md +19 -14
- data/tracks/javascript/exercises/word-count/README.md +16 -14
- data/tracks/javascript/exercises/wordy/README.md +15 -17
- data/tracks/javascript/exercises/zipper/README.md +20 -18
- data/tracks/perl6/docs/ABOUT.md +12 -21
- metadata +6 -4
- data/tracks/javascript/docs/EXERCISE_README_INSERT.md +0 -22
@@ -4,7 +4,7 @@ Detect saddle points in a matrix.
|
|
4
4
|
|
5
5
|
So say you have a matrix like so:
|
6
6
|
|
7
|
-
```
|
7
|
+
```text
|
8
8
|
0 1 2
|
9
9
|
|---------
|
10
10
|
0 | 9 8 7
|
@@ -28,26 +28,29 @@ but the tests for this exercise follow the above unambiguous definition.
|
|
28
28
|
|
29
29
|
## Setup
|
30
30
|
|
31
|
-
Go through the setup instructions for JavaScript to
|
32
|
-
|
31
|
+
Go through the setup instructions for JavaScript to install the
|
32
|
+
necessary dependencies:
|
33
33
|
|
34
34
|
http://exercism.io/languages/javascript/installation
|
35
35
|
|
36
|
-
##
|
36
|
+
## Running the test suite
|
37
37
|
|
38
|
-
|
38
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
39
|
+
You can install it by opening a terminal window and running the
|
40
|
+
following command:
|
39
41
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
test the Hello World exercise:
|
42
|
+
```sh
|
43
|
+
npm install -g jasmine
|
44
|
+
```
|
44
45
|
|
45
|
-
|
46
|
+
Run the test suite from the exercise directory with:
|
46
47
|
|
47
|
-
|
48
|
+
```sh
|
49
|
+
jasmine saddle-points.spec.js
|
50
|
+
```
|
48
51
|
|
49
|
-
|
50
|
-
changing `xit` to `it`.
|
52
|
+
In many test suites all but the first test have been marked "pending".
|
53
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
51
54
|
|
52
55
|
## Source
|
53
56
|
|
@@ -64,26 +64,29 @@ Use _and_ (correctly) when spelling out the number in English:
|
|
64
64
|
|
65
65
|
## Setup
|
66
66
|
|
67
|
-
Go through the setup instructions for JavaScript to
|
68
|
-
|
67
|
+
Go through the setup instructions for JavaScript to install the
|
68
|
+
necessary dependencies:
|
69
69
|
|
70
70
|
http://exercism.io/languages/javascript/installation
|
71
71
|
|
72
|
-
##
|
72
|
+
## Running the test suite
|
73
73
|
|
74
|
-
|
74
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
75
|
+
You can install it by opening a terminal window and running the
|
76
|
+
following command:
|
75
77
|
|
76
|
-
|
78
|
+
```sh
|
79
|
+
npm install -g jasmine
|
80
|
+
```
|
77
81
|
|
78
|
-
|
79
|
-
test the Hello World exercise:
|
82
|
+
Run the test suite from the exercise directory with:
|
80
83
|
|
81
|
-
|
84
|
+
```sh
|
85
|
+
jasmine say.spec.js
|
86
|
+
```
|
82
87
|
|
83
|
-
In many test suites all but the first test have been
|
84
|
-
|
85
|
-
Once you get a test passing, you can unskip the next one by
|
86
|
-
changing `xit` to `it`.
|
88
|
+
In many test suites all but the first test have been marked "pending".
|
89
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
87
90
|
|
88
91
|
## Source
|
89
92
|
|
@@ -6,7 +6,7 @@ Given a word, compute the scrabble score for that word.
|
|
6
6
|
|
7
7
|
You'll need these:
|
8
8
|
|
9
|
-
```
|
9
|
+
```text
|
10
10
|
Letter Value
|
11
11
|
A, E, I, O, U, L, N, R, S, T 1
|
12
12
|
D, G 2
|
@@ -18,6 +18,7 @@ Q, Z 10
|
|
18
18
|
```
|
19
19
|
|
20
20
|
## Examples
|
21
|
+
|
21
22
|
"cabbage" should be scored as worth 14 points:
|
22
23
|
|
23
24
|
- 3 points for C
|
@@ -34,31 +35,35 @@ And to total:
|
|
34
35
|
- = 14
|
35
36
|
|
36
37
|
## Extensions
|
38
|
+
|
37
39
|
- You can play a double or a triple letter.
|
38
40
|
- You can play a double or a triple word.
|
39
41
|
|
40
42
|
## Setup
|
41
43
|
|
42
|
-
Go through the setup instructions for JavaScript to
|
43
|
-
|
44
|
+
Go through the setup instructions for JavaScript to install the
|
45
|
+
necessary dependencies:
|
44
46
|
|
45
47
|
http://exercism.io/languages/javascript/installation
|
46
48
|
|
47
|
-
##
|
48
|
-
|
49
|
-
Execute the tests with:
|
49
|
+
## Running the test suite
|
50
50
|
|
51
|
-
|
51
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
52
|
+
You can install it by opening a terminal window and running the
|
53
|
+
following command:
|
52
54
|
|
53
|
-
|
54
|
-
|
55
|
+
```sh
|
56
|
+
npm install -g jasmine
|
57
|
+
```
|
55
58
|
|
56
|
-
|
59
|
+
Run the test suite from the exercise directory with:
|
57
60
|
|
58
|
-
|
61
|
+
```sh
|
62
|
+
jasmine scrabble-score.spec.js
|
63
|
+
```
|
59
64
|
|
60
|
-
|
61
|
-
changing `xit` to `it`.
|
65
|
+
In many test suites all but the first test have been marked "pending".
|
66
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
62
67
|
|
63
68
|
## Source
|
64
69
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
You and your fellow cohort of those in the "know" when it comes to
|
7
7
|
binary decide to come up with a secret "handshake".
|
8
8
|
|
9
|
-
```
|
9
|
+
```text
|
10
10
|
1 = wink
|
11
11
|
10 = double blink
|
12
12
|
100 = close your eyes
|
@@ -30,26 +30,29 @@ has caused the array to be reversed.
|
|
30
30
|
|
31
31
|
## Setup
|
32
32
|
|
33
|
-
Go through the setup instructions for JavaScript to
|
34
|
-
|
33
|
+
Go through the setup instructions for JavaScript to install the
|
34
|
+
necessary dependencies:
|
35
35
|
|
36
36
|
http://exercism.io/languages/javascript/installation
|
37
37
|
|
38
|
-
##
|
39
|
-
|
40
|
-
Execute the tests with:
|
38
|
+
## Running the test suite
|
41
39
|
|
42
|
-
|
40
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
41
|
+
You can install it by opening a terminal window and running the
|
42
|
+
following command:
|
43
43
|
|
44
|
-
|
45
|
-
|
44
|
+
```sh
|
45
|
+
npm install -g jasmine
|
46
|
+
```
|
46
47
|
|
47
|
-
|
48
|
+
Run the test suite from the exercise directory with:
|
48
49
|
|
49
|
-
|
50
|
+
```sh
|
51
|
+
jasmine secret-handshake.spec.js
|
52
|
+
```
|
50
53
|
|
51
|
-
|
52
|
-
changing `xit` to `it`.
|
54
|
+
In many test suites all but the first test have been marked "pending".
|
55
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
53
56
|
|
54
57
|
## Source
|
55
58
|
|
@@ -22,26 +22,29 @@ in the input; the digits need not be *numerically consecutive*.
|
|
22
22
|
|
23
23
|
## Setup
|
24
24
|
|
25
|
-
Go through the setup instructions for JavaScript to
|
26
|
-
|
25
|
+
Go through the setup instructions for JavaScript to install the
|
26
|
+
necessary dependencies:
|
27
27
|
|
28
28
|
http://exercism.io/languages/javascript/installation
|
29
29
|
|
30
|
-
##
|
30
|
+
## Running the test suite
|
31
31
|
|
32
|
-
|
32
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
33
|
+
You can install it by opening a terminal window and running the
|
34
|
+
following command:
|
33
35
|
|
34
|
-
|
36
|
+
```sh
|
37
|
+
npm install -g jasmine
|
38
|
+
```
|
35
39
|
|
36
|
-
|
37
|
-
test the Hello World exercise:
|
40
|
+
Run the test suite from the exercise directory with:
|
38
41
|
|
39
|
-
|
42
|
+
```sh
|
43
|
+
jasmine series.spec.js
|
44
|
+
```
|
40
45
|
|
41
|
-
In many test suites all but the first test have been
|
42
|
-
|
43
|
-
Once you get a test passing, you can unskip the next one by
|
44
|
-
changing `xit` to `it`.
|
46
|
+
In many test suites all but the first test have been marked "pending".
|
47
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
45
48
|
|
46
49
|
## Source
|
47
50
|
|
@@ -29,26 +29,29 @@ correct list of primes.
|
|
29
29
|
|
30
30
|
## Setup
|
31
31
|
|
32
|
-
Go through the setup instructions for JavaScript to
|
33
|
-
|
32
|
+
Go through the setup instructions for JavaScript to install the
|
33
|
+
necessary dependencies:
|
34
34
|
|
35
35
|
http://exercism.io/languages/javascript/installation
|
36
36
|
|
37
|
-
##
|
37
|
+
## Running the test suite
|
38
38
|
|
39
|
-
|
39
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
40
|
+
You can install it by opening a terminal window and running the
|
41
|
+
following command:
|
40
42
|
|
41
|
-
|
43
|
+
```sh
|
44
|
+
npm install -g jasmine
|
45
|
+
```
|
42
46
|
|
43
|
-
|
44
|
-
test the Hello World exercise:
|
47
|
+
Run the test suite from the exercise directory with:
|
45
48
|
|
46
|
-
|
49
|
+
```sh
|
50
|
+
jasmine sieve.spec.js
|
51
|
+
```
|
47
52
|
|
48
|
-
In many test suites all but the first test have been
|
49
|
-
|
50
|
-
Once you get a test passing, you can unskip the next one by
|
51
|
-
changing `xit` to `it`.
|
53
|
+
In many test suites all but the first test have been marked "pending".
|
54
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
52
55
|
|
53
56
|
## Source
|
54
57
|
|
@@ -58,15 +58,13 @@ would get the same thing as the Caesar Cipher.
|
|
58
58
|
|
59
59
|
The weakest link in any cipher is the human being. Let's make your
|
60
60
|
substitution cipher a little more fault tolerant by providing a source
|
61
|
-
of randomness and ensuring that the key
|
62
|
-
capital letters.
|
61
|
+
of randomness and ensuring that the key contains only lowercase letters.
|
63
62
|
|
64
63
|
If someone doesn't submit a key at all, generate a truly random key of
|
65
|
-
at least 100 characters in length
|
66
|
-
syntax means instance variable)
|
64
|
+
at least 100 characters in length.
|
67
65
|
|
68
|
-
If the key submitted
|
69
|
-
|
66
|
+
If the key submitted is not composed only of lowercase letters, your
|
67
|
+
solution should handle the error in a language-appropriate way.
|
70
68
|
|
71
69
|
## Extensions
|
72
70
|
|
@@ -85,26 +83,29 @@ on Wikipedia][dh] for one of the first implementations of this scheme.
|
|
85
83
|
|
86
84
|
## Setup
|
87
85
|
|
88
|
-
Go through the setup instructions for JavaScript to
|
89
|
-
|
86
|
+
Go through the setup instructions for JavaScript to install the
|
87
|
+
necessary dependencies:
|
90
88
|
|
91
89
|
http://exercism.io/languages/javascript/installation
|
92
90
|
|
93
|
-
##
|
91
|
+
## Running the test suite
|
94
92
|
|
95
|
-
|
93
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
94
|
+
You can install it by opening a terminal window and running the
|
95
|
+
following command:
|
96
96
|
|
97
|
-
|
97
|
+
```sh
|
98
|
+
npm install -g jasmine
|
99
|
+
```
|
98
100
|
|
99
|
-
|
100
|
-
test the Hello World exercise:
|
101
|
+
Run the test suite from the exercise directory with:
|
101
102
|
|
102
|
-
|
103
|
+
```sh
|
104
|
+
jasmine simple-cipher.spec.js
|
105
|
+
```
|
103
106
|
|
104
|
-
In many test suites all but the first test have been
|
105
|
-
|
106
|
-
Once you get a test passing, you can unskip the next one by
|
107
|
-
changing `xit` to `it`.
|
107
|
+
In many test suites all but the first test have been marked "pending".
|
108
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
108
109
|
|
109
110
|
## Source
|
110
111
|
|
@@ -23,26 +23,29 @@ implement your own abstract data type.
|
|
23
23
|
|
24
24
|
## Setup
|
25
25
|
|
26
|
-
Go through the setup instructions for JavaScript to
|
27
|
-
|
26
|
+
Go through the setup instructions for JavaScript to install the
|
27
|
+
necessary dependencies:
|
28
28
|
|
29
29
|
http://exercism.io/languages/javascript/installation
|
30
30
|
|
31
|
-
##
|
31
|
+
## Running the test suite
|
32
32
|
|
33
|
-
|
33
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
34
|
+
You can install it by opening a terminal window and running the
|
35
|
+
following command:
|
34
36
|
|
35
|
-
|
37
|
+
```sh
|
38
|
+
npm install -g jasmine
|
39
|
+
```
|
36
40
|
|
37
|
-
|
38
|
-
test the Hello World exercise:
|
41
|
+
Run the test suite from the exercise directory with:
|
39
42
|
|
40
|
-
|
43
|
+
```sh
|
44
|
+
jasmine simple-linked-list.spec.js
|
45
|
+
```
|
41
46
|
|
42
|
-
In many test suites all but the first test have been
|
43
|
-
|
44
|
-
Once you get a test passing, you can unskip the next one by
|
45
|
-
changing `xit` to `it`.
|
47
|
+
In many test suites all but the first test have been marked "pending".
|
48
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
46
49
|
|
47
50
|
## Source
|
48
51
|
|
@@ -12,33 +12,36 @@ Given an age in seconds, calculate how old someone would be on:
|
|
12
12
|
- Neptune: orbital period 164.79132 Earth years
|
13
13
|
|
14
14
|
So if you were told someone were 1,000,000,000 seconds old, you should
|
15
|
-
be able to say that they're 31 Earth-years old.
|
15
|
+
be able to say that they're 31.69 Earth-years old.
|
16
16
|
|
17
17
|
If you're wondering why Pluto didn't make the cut, go watch [this
|
18
18
|
youtube video](http://www.youtube.com/watch?v=Z_2gbGXzFbs).
|
19
19
|
|
20
20
|
## Setup
|
21
21
|
|
22
|
-
Go through the setup instructions for JavaScript to
|
23
|
-
|
22
|
+
Go through the setup instructions for JavaScript to install the
|
23
|
+
necessary dependencies:
|
24
24
|
|
25
25
|
http://exercism.io/languages/javascript/installation
|
26
26
|
|
27
|
-
##
|
27
|
+
## Running the test suite
|
28
28
|
|
29
|
-
|
29
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
30
|
+
You can install it by opening a terminal window and running the
|
31
|
+
following command:
|
30
32
|
|
31
|
-
|
33
|
+
```sh
|
34
|
+
npm install -g jasmine
|
35
|
+
```
|
32
36
|
|
33
|
-
|
34
|
-
test the Hello World exercise:
|
37
|
+
Run the test suite from the exercise directory with:
|
35
38
|
|
36
|
-
|
39
|
+
```sh
|
40
|
+
jasmine space-age.spec.js
|
41
|
+
```
|
37
42
|
|
38
|
-
In many test suites all but the first test have been
|
39
|
-
|
40
|
-
Once you get a test passing, you can unskip the next one by
|
41
|
-
changing `xit` to `it`.
|
43
|
+
In many test suites all but the first test have been marked "pending".
|
44
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
42
45
|
|
43
46
|
## Source
|
44
47
|
|
@@ -35,26 +35,29 @@ basic tools instead.
|
|
35
35
|
|
36
36
|
## Setup
|
37
37
|
|
38
|
-
Go through the setup instructions for JavaScript to
|
39
|
-
|
38
|
+
Go through the setup instructions for JavaScript to install the
|
39
|
+
necessary dependencies:
|
40
40
|
|
41
41
|
http://exercism.io/languages/javascript/installation
|
42
42
|
|
43
|
-
##
|
43
|
+
## Running the test suite
|
44
44
|
|
45
|
-
|
45
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
46
|
+
You can install it by opening a terminal window and running the
|
47
|
+
following command:
|
46
48
|
|
47
|
-
|
49
|
+
```sh
|
50
|
+
npm install -g jasmine
|
51
|
+
```
|
48
52
|
|
49
|
-
|
50
|
-
test the Hello World exercise:
|
53
|
+
Run the test suite from the exercise directory with:
|
51
54
|
|
52
|
-
|
55
|
+
```sh
|
56
|
+
jasmine strain.spec.js
|
57
|
+
```
|
53
58
|
|
54
|
-
In many test suites all but the first test have been
|
55
|
-
|
56
|
-
Once you get a test passing, you can unskip the next one by
|
57
|
-
changing `xit` to `it`.
|
59
|
+
In many test suites all but the first test have been marked "pending".
|
60
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
58
61
|
|
59
62
|
## Source
|
60
63
|
|
@@ -19,32 +19,29 @@ Examples:
|
|
19
19
|
|
20
20
|
## Setup
|
21
21
|
|
22
|
-
Go through the setup instructions for
|
23
|
-
|
22
|
+
Go through the setup instructions for JavaScript to install the
|
23
|
+
necessary dependencies:
|
24
24
|
|
25
|
-
http://exercism.io/languages/
|
25
|
+
http://exercism.io/languages/javascript/installation
|
26
26
|
|
27
|
-
##
|
27
|
+
## Running the test suite
|
28
28
|
|
29
|
-
|
29
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
30
|
+
You can install it by opening a terminal window and running the
|
31
|
+
following command:
|
30
32
|
|
31
|
-
```
|
32
|
-
|
33
|
+
```sh
|
34
|
+
npm install -g jasmine
|
33
35
|
```
|
34
36
|
|
35
|
-
|
37
|
+
Run the test suite from the exercise directory with:
|
36
38
|
|
37
|
-
|
38
|
-
|
39
|
-
```bash
|
40
|
-
$ jasmine sublist.spec.js
|
39
|
+
```sh
|
40
|
+
jasmine sublist.spec.js
|
41
41
|
```
|
42
42
|
|
43
|
-
In
|
44
|
-
|
45
|
-
Once you get a test passing, you can enable the next one by
|
46
|
-
changing `xit` to `it`.
|
47
|
-
|
43
|
+
In many test suites all but the first test have been marked "pending".
|
44
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
48
45
|
|
49
46
|
## Submitting Incomplete Solutions
|
50
47
|
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
|
@@ -1,38 +1,38 @@
|
|
1
|
-
# Sum
|
1
|
+
# Sum Of Multiples
|
2
2
|
|
3
|
-
Given a number, find the sum of all the multiples of particular numbers up to
|
3
|
+
Given a number, find the sum of all the unique multiples of particular numbers up to
|
4
4
|
but not including that number.
|
5
5
|
|
6
|
-
If we list all the natural numbers
|
7
|
-
|
6
|
+
If we list all the natural numbers below 20 that are multiples of 3 or 5,
|
7
|
+
we get 3, 5, 6, 9, 10, 12, 15, and 18.
|
8
8
|
|
9
9
|
The sum of these multiples is 78.
|
10
10
|
|
11
|
-
Given a number, find the sum of the multiples of a given set of numbers,
|
12
|
-
up to but not including that number.
|
13
|
-
|
14
11
|
## Setup
|
15
12
|
|
16
|
-
Go through the setup instructions for JavaScript to
|
17
|
-
|
13
|
+
Go through the setup instructions for JavaScript to install the
|
14
|
+
necessary dependencies:
|
18
15
|
|
19
16
|
http://exercism.io/languages/javascript/installation
|
20
17
|
|
21
|
-
##
|
22
|
-
|
23
|
-
Execute the tests with:
|
18
|
+
## Running the test suite
|
24
19
|
|
25
|
-
|
20
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
21
|
+
You can install it by opening a terminal window and running the
|
22
|
+
following command:
|
26
23
|
|
27
|
-
|
28
|
-
|
24
|
+
```sh
|
25
|
+
npm install -g jasmine
|
26
|
+
```
|
29
27
|
|
30
|
-
|
28
|
+
Run the test suite from the exercise directory with:
|
31
29
|
|
32
|
-
|
30
|
+
```sh
|
31
|
+
jasmine sum-of-multiples.spec.js
|
32
|
+
```
|
33
33
|
|
34
|
-
|
35
|
-
changing `xit` to `it`.
|
34
|
+
In many test suites all but the first test have been marked "pending".
|
35
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
36
36
|
|
37
37
|
## Source
|
38
38
|
|
@@ -60,26 +60,29 @@ the corresponding output row should contain the spaces in its right-most column(
|
|
60
60
|
|
61
61
|
## Setup
|
62
62
|
|
63
|
-
Go through the setup instructions for JavaScript to
|
64
|
-
|
63
|
+
Go through the setup instructions for JavaScript to install the
|
64
|
+
necessary dependencies:
|
65
65
|
|
66
66
|
http://exercism.io/languages/javascript/installation
|
67
67
|
|
68
|
-
##
|
68
|
+
## Running the test suite
|
69
69
|
|
70
|
-
|
70
|
+
The provided test suite uses [Jasmine](https://jasmine.github.io/).
|
71
|
+
You can install it by opening a terminal window and running the
|
72
|
+
following command:
|
71
73
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
test the Hello World exercise:
|
74
|
+
```sh
|
75
|
+
npm install -g jasmine
|
76
|
+
```
|
76
77
|
|
77
|
-
|
78
|
+
Run the test suite from the exercise directory with:
|
78
79
|
|
79
|
-
|
80
|
+
```sh
|
81
|
+
jasmine transpose.spec.js
|
82
|
+
```
|
80
83
|
|
81
|
-
|
82
|
-
changing `xit` to `it`.
|
84
|
+
In many test suites all but the first test have been marked "pending".
|
85
|
+
Once you get a test passing, activate the next one by changing `xit` to `it`.
|
83
86
|
|
84
87
|
## Source
|
85
88
|
|