trackler 2.1.0.42 → 2.1.0.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/update +3 -3
- data/common/CONTRIBUTING.md +5 -5
- data/common/exercises/rna-transcription/canonical-data.json +9 -9
- data/lib/trackler/track.rb +40 -6
- data/lib/trackler/version.rb +1 -1
- data/tracks/clojure/config.json +7 -0
- data/tracks/clojure/exercises/rotational-cipher/project.clj +4 -0
- data/tracks/clojure/exercises/rotational-cipher/src/example.clj +21 -0
- data/tracks/clojure/exercises/rotational-cipher/test/rotational_cipher_test.clj +34 -0
- data/tracks/elm/README.md +3 -3
- data/tracks/elm/config.json +1 -1
- data/tracks/elm/exercises/accumulate/elm-package.json +1 -1
- data/tracks/elm/exercises/accumulate/package.json +1 -1
- data/tracks/elm/exercises/accumulate/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/allergies/elm-package.json +1 -1
- data/tracks/elm/exercises/allergies/package.json +1 -1
- data/tracks/elm/exercises/allergies/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/anagram/elm-package.json +1 -1
- data/tracks/elm/exercises/anagram/package.json +1 -1
- data/tracks/elm/exercises/anagram/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/atbash-cipher/elm-package.json +1 -1
- data/tracks/elm/exercises/atbash-cipher/package.json +1 -1
- data/tracks/elm/exercises/atbash-cipher/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/bob/elm-package.json +1 -1
- data/tracks/elm/exercises/bob/package.json +1 -1
- data/tracks/elm/exercises/bob/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/difference-of-squares/elm-package.json +1 -1
- data/tracks/elm/exercises/difference-of-squares/package.json +1 -1
- data/tracks/elm/exercises/difference-of-squares/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/gigasecond/elm-package.json +1 -1
- data/tracks/elm/exercises/gigasecond/package.json +1 -1
- data/tracks/elm/exercises/gigasecond/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/grade-school/elm-package.json +1 -1
- data/tracks/elm/exercises/grade-school/package.json +1 -1
- data/tracks/elm/exercises/grade-school/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/grains/elm-package.json +1 -1
- data/tracks/elm/exercises/grains/package.json +1 -1
- data/tracks/elm/exercises/grains/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/hamming/elm-package.json +1 -1
- data/tracks/elm/exercises/hamming/package.json +1 -1
- data/tracks/elm/exercises/hamming/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/hello-world/elm-package.json +1 -1
- data/tracks/elm/exercises/hello-world/package.json +1 -1
- data/tracks/elm/exercises/hello-world/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/largest-series-product/elm-package.json +1 -1
- data/tracks/elm/exercises/largest-series-product/package.json +1 -1
- data/tracks/elm/exercises/largest-series-product/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/leap/elm-package.json +1 -1
- data/tracks/elm/exercises/leap/package.json +1 -1
- data/tracks/elm/exercises/leap/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/list-ops/elm-package.json +1 -1
- data/tracks/elm/exercises/list-ops/package.json +1 -1
- data/tracks/elm/exercises/list-ops/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/nucleotide-count/elm-package.json +1 -1
- data/tracks/elm/exercises/nucleotide-count/package.json +1 -1
- data/tracks/elm/exercises/nucleotide-count/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/pangram/elm-package.json +1 -1
- data/tracks/elm/exercises/pangram/package.json +1 -1
- data/tracks/elm/exercises/pangram/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/phone-number/elm-package.json +1 -1
- data/tracks/elm/exercises/phone-number/package.json +1 -1
- data/tracks/elm/exercises/phone-number/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/raindrops/elm-package.json +1 -1
- data/tracks/elm/exercises/raindrops/package.json +1 -1
- data/tracks/elm/exercises/raindrops/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/rna-transcription/elm-package.json +1 -1
- data/tracks/elm/exercises/rna-transcription/package.json +1 -1
- data/tracks/elm/exercises/rna-transcription/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/robot-simulator/elm-package.json +1 -1
- data/tracks/elm/exercises/robot-simulator/package.json +1 -1
- data/tracks/elm/exercises/robot-simulator/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/roman-numerals/elm-package.json +1 -1
- data/tracks/elm/exercises/roman-numerals/package.json +1 -1
- data/tracks/elm/exercises/roman-numerals/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/run-length-encoding/elm-package.json +1 -1
- data/tracks/elm/exercises/run-length-encoding/package.json +1 -1
- data/tracks/elm/exercises/run-length-encoding/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/say/elm-package.json +1 -1
- data/tracks/elm/exercises/say/package.json +1 -1
- data/tracks/elm/exercises/say/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/scrabble-score/elm-package.json +1 -1
- data/tracks/elm/exercises/scrabble-score/package.json +1 -1
- data/tracks/elm/exercises/scrabble-score/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/series/elm-package.json +1 -1
- data/tracks/elm/exercises/series/package.json +1 -1
- data/tracks/elm/exercises/series/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/space-age/elm-package.json +1 -1
- data/tracks/elm/exercises/space-age/package.json +1 -1
- data/tracks/elm/exercises/space-age/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/strain/elm-package.json +1 -1
- data/tracks/elm/exercises/strain/package.json +1 -1
- data/tracks/elm/exercises/strain/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/sublist/elm-package.json +1 -1
- data/tracks/elm/exercises/sublist/package.json +1 -1
- data/tracks/elm/exercises/sublist/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/sum-of-multiples/elm-package.json +1 -1
- data/tracks/elm/exercises/sum-of-multiples/package.json +1 -1
- data/tracks/elm/exercises/sum-of-multiples/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/triangle/elm-package.json +1 -1
- data/tracks/elm/exercises/triangle/package.json +1 -1
- data/tracks/elm/exercises/triangle/tests/elm-package.json +1 -1
- data/tracks/elm/exercises/word-count/elm-package.json +1 -1
- data/tracks/elm/exercises/word-count/package.json +1 -1
- data/tracks/elm/exercises/word-count/tests/elm-package.json +1 -1
- data/tracks/perl5/README.md +1 -1
- data/tracks/prolog/exercises/hello-world/hello_world_tests.plt +3 -3
- data/tracks/purescript/config.json +0 -5
- data/tracks/python/README.md +4 -4
- data/tracks/python/config.json +1 -1
- data/tracks/ruby/exercises/hamming/RUNNING_TESTS.md +56 -0
- data/tracks/ruby/exercises/hello-world/GETTING_STARTED.md +10 -33
- data/tracks/rust/config.json +1 -1
- metadata +6 -4
- data/fixtures/tracks/fake/docs/STRAY.md +0 -1
- data/lib/trackler/doc_file.rb +0 -88
data/tracks/perl5/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Exercism Perl 5 Track
|
2
2
|
|
3
|
-
[![Gitter](https://badges.gitter.im/exercism/xperl.svg)](https://gitter.im/exercism/
|
3
|
+
[![Gitter](https://badges.gitter.im/exercism/xperl.svg)](https://gitter.im/exercism/perl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
4
4
|
|
5
5
|
Exercism exercises in Perl 5
|
6
6
|
|
@@ -13,13 +13,13 @@ pending :-
|
|
13
13
|
write('\nA TEST IS PENDING!\n'),
|
14
14
|
fail.
|
15
15
|
|
16
|
-
:- begin_tests(
|
16
|
+
:- begin_tests(hello_world).
|
17
17
|
|
18
18
|
test(hello_world, condition(true)) :-
|
19
19
|
hello_world('Hello World!').
|
20
20
|
|
21
21
|
% Once the first test passes, un-skip the following test by
|
22
|
-
% changing `pending` in `condition(
|
22
|
+
% changing `pending` in `condition(pending)` to `true`.
|
23
23
|
% Repeat for each test until they are all passing.
|
24
24
|
|
25
25
|
test(hello_world_with_a_name, condition(pending)) :-
|
@@ -28,4 +28,4 @@ pending :-
|
|
28
28
|
test(hello_world_another_name, condition(pending)) :-
|
29
29
|
hello_world('Bob', 'Hello Bob!').
|
30
30
|
|
31
|
-
:- end_tests(
|
31
|
+
:- end_tests(hello_world).
|
data/tracks/python/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
#
|
1
|
+
# Exercism Python Track
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/exercism/
|
4
|
-
[![Join the chat at https://gitter.im/exercism/
|
3
|
+
[![Build Status](https://travis-ci.org/exercism/python.svg?branch=master)](https://travis-ci.org/exercism/python) [![Requirements Status](https://requires.io/github/exercism/python/requirements.svg?branch=master)](https://requires.io/github/exercism/python/requirements/?branch=master)
|
4
|
+
[![Join the chat at https://gitter.im/exercism/python](https://badges.gitter.im/exercism/python.svg)](https://gitter.im/exercism/python?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
5
5
|
|
6
6
|
Exercism exercises in Python
|
7
7
|
|
@@ -48,7 +48,7 @@ This repo uses [flake8](http://flake8.readthedocs.org/en/latest/) with default s
|
|
48
48
|
|
49
49
|
### CI build
|
50
50
|
|
51
|
-
This repo uses `travis-ci` in the following configuration: [travis.yml](https://github.com/exercism/
|
51
|
+
This repo uses `travis-ci` in the following configuration: [travis.yml](https://github.com/exercism/python/blob/master/.travis.yml)
|
52
52
|
|
53
53
|
It will check automatically the code style, the problem configuration and runns the unittests with all supported Python versions.
|
54
54
|
|
data/tracks/python/config.json
CHANGED
@@ -0,0 +1,56 @@
|
|
1
|
+
# Running Tests
|
2
|
+
|
3
|
+
In order to complete this exercise, and all of the subsequent exercises, you
|
4
|
+
will need to pass multiple tests.
|
5
|
+
|
6
|
+
## Understanding Test Results
|
7
|
+
|
8
|
+
After you have created and saved `hamming.rb`, run the test suite. You should
|
9
|
+
see output like the following:
|
10
|
+
|
11
|
+
# Running:
|
12
|
+
|
13
|
+
SSSSSSESSSSSSSSS
|
14
|
+
|
15
|
+
Finished in 0.002593s, 6170.4588 runs/s, 0.0000 assertions/s.
|
16
|
+
|
17
|
+
1) Error:
|
18
|
+
HammingTest#test_identical_strands:
|
19
|
+
NameError: uninitialized constant HammingTest::Hamming
|
20
|
+
Did you mean? HammingTest
|
21
|
+
../hamming/hamming_test.rb:9:in `test_identical_strands'
|
22
|
+
|
23
|
+
16 runs, 0 assertions, 0 failures, 1 errors, 15 skips
|
24
|
+
|
25
|
+
You have skipped tests. Run with --verbose for details.
|
26
|
+
|
27
|
+
|
28
|
+
The letters `SSSSSSESSSSSSSSS` show that there are sixteen tests altogether,
|
29
|
+
that one of them has an error (`E`), and that the rest of them are skipped (all
|
30
|
+
the `S` letters).
|
31
|
+
|
32
|
+
The tests are run in randomized order, which will cause the letters to display
|
33
|
+
in random order as well.
|
34
|
+
|
35
|
+
The goal is to have all passing tests, which will show in two places:
|
36
|
+
|
37
|
+
1. `SSSSSSESSSSSSSSS` will become a series dots: `................`,
|
38
|
+
|
39
|
+
2. The line at the bottom will read `16 runs, 0 assertions, 0 failures, 0
|
40
|
+
errors, 0 skips`.
|
41
|
+
|
42
|
+
## Passing Tests
|
43
|
+
|
44
|
+
Write enough code to change the Error to Failure, and finally to Passing.
|
45
|
+
|
46
|
+
Open `hamming_test.rb`, and find the word "skip". All but the first test start
|
47
|
+
with "skip", which tells Minitest to ignore the test. This is so that you don't
|
48
|
+
have to deal with all the failures at once.
|
49
|
+
|
50
|
+
To activate the next test, delete the "skip", or comment it out, and run the
|
51
|
+
test suite again.
|
52
|
+
|
53
|
+
## Wash, Rinse, Repeat
|
54
|
+
|
55
|
+
Delete one "skip" at a time, and make each test pass before you move to the
|
56
|
+
next one.
|