trackler 2.0.6.28 → 2.0.6.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/common/exercises/all-your-base/metadata.yml +1 -1
- data/common/exercises/allergies/metadata.yml +1 -1
- data/common/exercises/anagram/metadata.yml +1 -1
- data/common/exercises/beer-song/metadata.yml +1 -1
- data/common/exercises/binary-search-tree/metadata.yml +1 -1
- data/common/exercises/binary-search/metadata.yml +1 -1
- data/common/exercises/binary/metadata.yml +1 -1
- data/common/exercises/change/description.md +3 -3
- data/common/exercises/change/metadata.yml +1 -1
- data/common/exercises/crypto-square/description.md +1 -2
- data/common/exercises/etl/description.md +2 -2
- data/common/exercises/flatten-array/metadata.yml +1 -1
- data/common/exercises/food-chain/description.md +4 -5
- data/common/exercises/food-chain/metadata.yml +1 -1
- data/common/exercises/gigasecond/metadata.yml +1 -1
- data/common/exercises/grade-school/metadata.yml +1 -1
- data/common/exercises/grains/description.md +1 -1
- data/common/exercises/grains/metadata.yml +1 -1
- data/common/exercises/hamming/metadata.yml +1 -1
- data/common/exercises/hello-world/metadata.yml +1 -1
- data/common/exercises/hexadecimal/metadata.yml +1 -1
- data/common/exercises/house/metadata.yml +1 -1
- data/common/exercises/kindergarten-garden/metadata.yml +1 -1
- data/common/exercises/largest-series-product/metadata.yml +1 -1
- data/common/exercises/leap/metadata.yml +1 -1
- data/common/exercises/luhn/description.md +1 -1
- data/common/exercises/luhn/metadata.yml +1 -1
- data/common/exercises/matrix/metadata.yml +1 -1
- data/common/exercises/minesweeper/metadata.yml +1 -1
- data/common/exercises/nth-prime/metadata.yml +1 -1
- data/common/exercises/ocr-numbers/metadata.yml +1 -1
- data/common/exercises/octal/metadata.yml +1 -1
- data/common/exercises/paasio/metadata.yml +1 -1
- data/common/exercises/palindrome-products/description.md +30 -2
- data/common/exercises/palindrome-products/metadata.yml +1 -1
- data/common/exercises/parallel-letter-frequency/metadata.yml +1 -1
- data/common/exercises/pascals-triangle/metadata.yml +1 -1
- data/common/exercises/phone-number/metadata.yml +1 -1
- data/common/exercises/point-mutations/metadata.yml +1 -1
- data/common/exercises/protein-translation/description.md +1 -1
- data/common/exercises/protein-translation/metadata.yml +1 -1
- data/common/exercises/proverb/metadata.yml +1 -1
- data/common/exercises/queen-attack/metadata.yml +1 -1
- data/common/exercises/raindrops/metadata.yml +1 -1
- data/common/exercises/rna-transcription/metadata.yml +1 -1
- data/common/exercises/robot-name/metadata.yml +1 -1
- data/common/exercises/saddle-points/metadata.yml +1 -1
- data/common/exercises/say/metadata.yml +1 -1
- data/common/exercises/scale-generator/description.md +3 -4
- data/common/exercises/scale-generator/metadata.yml +1 -1
- data/common/exercises/scrabble-score/metadata.yml +1 -1
- data/common/exercises/secret-handshake/metadata.yml +1 -1
- data/common/exercises/series/metadata.yml +1 -1
- data/common/exercises/sieve/metadata.yml +1 -1
- data/common/exercises/space-age/metadata.yml +1 -1
- data/common/exercises/sum-of-multiples/description.md +2 -2
- data/common/exercises/sum-of-multiples/metadata.yml +1 -1
- data/common/exercises/transpose/description.md +1 -1
- data/common/exercises/transpose/metadata.yml +1 -1
- data/common/exercises/triangle/metadata.yml +1 -1
- data/common/exercises/trinary/metadata.yml +1 -1
- data/common/exercises/twelve-days/metadata.yml +1 -1
- data/common/exercises/two-bucket/description.md +1 -1
- data/common/exercises/two-bucket/metadata.yml +1 -1
- data/common/exercises/word-count/metadata.yml +1 -1
- data/common/exercises/zebra-puzzle/metadata.yml +1 -1
- data/lib/trackler/version.rb +1 -1
- data/tracks/erlang/.gitignore +2 -0
- data/tracks/erlang/.travis.yml +8 -4
- data/tracks/erlang/Makefile +16 -0
- data/tracks/erlang/README.md +77 -1
- data/tracks/erlang/_test/bootstrap.sh +17 -4
- data/tracks/erlang/_test/check-exercises.escript +64 -24
- data/tracks/erlang/config.json +63 -63
- data/tracks/erlang/docs/INSTALLATION.md +18 -0
- data/tracks/erlang/docs/TESTS.md +1 -3
- data/tracks/erlang/exercises/accumulate/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/accumulate/rebar.conf +30 -0
- data/tracks/erlang/exercises/accumulate/src/accumulate.app.src +9 -0
- data/tracks/erlang/exercises/accumulate/{example.erl → src/example.erl} +3 -2
- data/tracks/erlang/exercises/accumulate/test/accumulate_tests.erl +27 -0
- data/tracks/erlang/exercises/allergies/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/allergies/rebar.conf +30 -0
- data/tracks/erlang/exercises/allergies/src/allergies.app.src +9 -0
- data/tracks/erlang/exercises/allergies/{example.erl → src/example.erl} +9 -10
- data/tracks/erlang/exercises/allergies/{allergies_tests.erl → test/allergies_tests.erl} +17 -20
- data/tracks/erlang/exercises/anagram/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/anagram/rebar.conf +32 -0
- data/tracks/erlang/exercises/anagram/src/anagram.app.src +9 -0
- data/tracks/erlang/exercises/anagram/{example.erl → src/example.erl} +2 -1
- data/tracks/erlang/exercises/anagram/test/anagram_tests.erl +43 -0
- data/tracks/erlang/exercises/atbash-cipher/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/atbash-cipher/rebar.conf +30 -0
- data/tracks/erlang/exercises/atbash-cipher/src/atbash_cipher.app.src +9 -0
- data/tracks/erlang/exercises/atbash-cipher/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/atbash-cipher/{atbash_cipher_tests.erl → test/atbash_cipher_tests.erl} +6 -2
- data/tracks/erlang/exercises/bank-account/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/bank-account/rebar.conf +30 -0
- data/tracks/erlang/exercises/bank-account/src/bank_account.app.src +9 -0
- data/tracks/erlang/exercises/bank-account/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/bank-account/test/bank_account_tests.erl +98 -0
- data/tracks/erlang/exercises/beer-song/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/beer-song/rebar.conf +30 -0
- data/tracks/erlang/exercises/beer-song/src/beer_song.app.src +9 -0
- data/tracks/erlang/exercises/beer-song/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/beer-song/{beer_song_tests.erl → test/beer_song_tests.erl} +9 -9
- data/tracks/erlang/exercises/binary/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/binary/rebar.conf +30 -0
- data/tracks/erlang/exercises/binary/src/binary.app.src +9 -0
- data/tracks/erlang/exercises/binary/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/binary/{binary_string_tests.erl → test/binary_string_tests.erl} +7 -3
- data/tracks/erlang/exercises/bob/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/bob/rebar.conf +30 -0
- data/tracks/erlang/exercises/bob/src/bob.app.src +9 -0
- data/tracks/erlang/exercises/bob/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/bob/{bob_tests.erl → test/bob_tests.erl} +4 -4
- data/tracks/erlang/exercises/circular-buffer/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/circular-buffer/rebar.conf +30 -0
- data/tracks/erlang/exercises/circular-buffer/src/circular_buffer.app.src +9 -0
- data/tracks/erlang/exercises/circular-buffer/{example.erl → src/example.erl} +1 -34
- data/tracks/erlang/exercises/circular-buffer/test/circular_buffer_tests.erl +58 -0
- data/tracks/erlang/exercises/clock/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/clock/rebar.conf +30 -0
- data/tracks/erlang/exercises/clock/src/clock.app.src +9 -0
- data/tracks/erlang/exercises/clock/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/clock/{clock_tests.erl → test/clock_tests.erl} +51 -48
- data/tracks/erlang/exercises/difference-of-squares/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/difference-of-squares/rebar.conf +30 -0
- data/tracks/erlang/exercises/difference-of-squares/src/difference_of_squares.app.src +9 -0
- data/tracks/erlang/exercises/difference-of-squares/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/difference-of-squares/{difference_of_squares_tests.erl → test/difference_of_squares_tests.erl} +7 -3
- data/tracks/erlang/exercises/etl/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/etl/rebar.conf +30 -0
- data/tracks/erlang/exercises/etl/src/etl.app.src +9 -0
- data/tracks/erlang/exercises/etl/{example.erl → src/example.erl} +1 -2
- data/tracks/erlang/exercises/etl/{etl_tests.erl → test/etl_tests.erl} +3 -4
- data/tracks/erlang/exercises/gigasecond/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/gigasecond/rebar.conf +30 -0
- data/tracks/erlang/exercises/gigasecond/{example.erl → src/example.erl} +1 -2
- data/tracks/erlang/exercises/gigasecond/src/gigasecond.app.src +9 -0
- data/tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl +22 -0
- data/tracks/erlang/exercises/grade-school/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/grade-school/rebar.conf +30 -0
- data/tracks/erlang/exercises/grade-school/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/grade-school/src/grade_school.app.src +9 -0
- data/tracks/erlang/exercises/grade-school/test/grade_school_tests.erl +47 -0
- data/tracks/erlang/exercises/grains/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/grains/rebar.conf +30 -0
- data/tracks/erlang/exercises/grains/{example.erl → src/example.erl} +1 -2
- data/tracks/erlang/exercises/grains/src/grains.app.src +9 -0
- data/tracks/erlang/exercises/grains/test/grains_tests.erl +32 -0
- data/tracks/erlang/exercises/hamming/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/hamming/rebar.conf +30 -0
- data/tracks/erlang/exercises/hamming/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/hamming/src/hamming.app.src +9 -0
- data/tracks/erlang/exercises/hamming/test/hamming_tests.erl +24 -0
- data/tracks/erlang/exercises/hello-world/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/hello-world/rebar.conf +30 -0
- data/tracks/erlang/exercises/hello-world/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/hello-world/src/hello_world.app.src +9 -0
- data/tracks/erlang/exercises/hello-world/test/hello_world_tests.erl +18 -0
- data/tracks/erlang/exercises/largest-series-product/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/largest-series-product/rebar.conf +30 -0
- data/tracks/erlang/exercises/largest-series-product/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/largest-series-product/src/largest_series_product.app.src +9 -0
- data/tracks/erlang/exercises/largest-series-product/test/largest_series_product_tests.erl +57 -0
- data/tracks/erlang/exercises/leap/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/leap/rebar.conf +30 -0
- data/tracks/erlang/exercises/leap/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/leap/src/leap.app.src +9 -0
- data/tracks/erlang/exercises/leap/test/leap_tests.erl +18 -0
- data/tracks/erlang/exercises/luhn/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/luhn/rebar.conf +30 -0
- data/tracks/erlang/exercises/luhn/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/luhn/src/luhn.app.src +9 -0
- data/tracks/erlang/exercises/luhn/test/luhn_tests.erl +18 -0
- data/tracks/erlang/exercises/meetup/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/meetup/rebar.conf +30 -0
- data/tracks/erlang/exercises/meetup/{example.erl → src/example.erl} +1 -2
- data/tracks/erlang/exercises/meetup/src/meetup.app.src +9 -0
- data/tracks/erlang/exercises/meetup/{meetup_tests.erl → test/meetup_tests.erl} +94 -95
- data/tracks/erlang/exercises/nucleotide-count/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/nucleotide-count/rebar.conf +30 -0
- data/tracks/erlang/exercises/nucleotide-count/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/nucleotide-count/src/nucleotide_count.app.src +9 -0
- data/tracks/erlang/exercises/nucleotide-count/test/dna_tests.erl +30 -0
- data/tracks/erlang/exercises/parallel-letter-frequency/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/parallel-letter-frequency/rebar.conf +30 -0
- data/tracks/erlang/exercises/parallel-letter-frequency/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/parallel-letter-frequency/src/parallel_letter_frequency.app.src +9 -0
- data/tracks/erlang/exercises/parallel-letter-frequency/{parallel_letter_frequency_tests.erl → test/parallel_letter_frequency_tests.erl} +6 -2
- data/tracks/erlang/exercises/phone-number/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/phone-number/rebar.conf +30 -0
- data/tracks/erlang/exercises/phone-number/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/phone-number/src/phone_number.app.src +9 -0
- data/tracks/erlang/exercises/phone-number/test/phone_tests.erl +28 -0
- data/tracks/erlang/exercises/rna-transcription/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/rna-transcription/rebar.conf +30 -0
- data/tracks/erlang/exercises/rna-transcription/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/rna-transcription/src/rna_transcription.app.src +9 -0
- data/tracks/erlang/exercises/rna-transcription/test/rna_transcription_tests.erl +24 -0
- data/tracks/erlang/exercises/robot-simulator/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/robot-simulator/rebar.conf +30 -0
- data/tracks/erlang/exercises/robot-simulator/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/robot-simulator/src/robot_simulator.app.src +9 -0
- data/tracks/erlang/exercises/robot-simulator/test/robot_simulator_tests.erl +100 -0
- data/tracks/erlang/exercises/roman-numerals/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/roman-numerals/rebar.conf +30 -0
- data/tracks/erlang/exercises/roman-numerals/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/roman-numerals/src/roman_numerals.app.src +9 -0
- data/tracks/erlang/exercises/roman-numerals/{roman_numerals_tests.erl → test/roman_numerals_tests.erl} +3 -4
- data/tracks/erlang/exercises/scrabble-score/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/scrabble-score/rebar.conf +30 -0
- data/tracks/erlang/exercises/scrabble-score/{example.erl → src/example.erl} +2 -2
- data/tracks/erlang/exercises/scrabble-score/src/scrabble_score.app.src +9 -0
- data/tracks/erlang/exercises/scrabble-score/{scrabble_score_tests.erl → test/scrabble_score_tests.erl} +5 -1
- data/tracks/erlang/exercises/series/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/series/rebar.conf +30 -0
- data/tracks/erlang/exercises/series/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/series/src/series.app.src +9 -0
- data/tracks/erlang/exercises/series/test/series_tests.erl +10 -0
- data/tracks/erlang/exercises/space-age/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/space-age/rebar.conf +30 -0
- data/tracks/erlang/exercises/space-age/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/space-age/src/space_age.app.src +9 -0
- data/tracks/erlang/exercises/space-age/test/space_age_tests.erl +51 -0
- data/tracks/erlang/exercises/strain/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/strain/rebar.conf +30 -0
- data/tracks/erlang/exercises/strain/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/strain/src/strain.app.src +9 -0
- data/tracks/erlang/exercises/strain/test/strain_tests.erl +52 -0
- data/tracks/erlang/exercises/sum-of-multiples/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/sum-of-multiples/rebar.conf +30 -0
- data/tracks/erlang/exercises/sum-of-multiples/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/sum-of-multiples/src/sum_of_multiples.app.src +9 -0
- data/tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl +39 -0
- data/tracks/erlang/exercises/triangle/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/triangle/rebar.conf +30 -0
- data/tracks/erlang/exercises/triangle/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/triangle/src/triangle.app.src +9 -0
- data/tracks/erlang/exercises/triangle/{triangle_tests.erl → test/triangle_tests.erl} +19 -18
- data/tracks/erlang/exercises/trinary/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/trinary/rebar.conf +30 -0
- data/tracks/erlang/exercises/trinary/{example.erl → src/example.erl} +1 -2
- data/tracks/erlang/exercises/trinary/src/trinary.app.src +9 -0
- data/tracks/erlang/exercises/trinary/test/trinary_tests.erl +36 -0
- data/tracks/erlang/exercises/word-count/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/word-count/rebar.conf +30 -0
- data/tracks/erlang/exercises/word-count/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/word-count/src/word_count.app.src +9 -0
- data/tracks/erlang/exercises/word-count/{word_count_tests.erl → test/word_count_tests.erl} +4 -2
- data/tracks/erlang/exercises/zipper/include/exercism.hrl +6 -0
- data/tracks/erlang/exercises/zipper/rebar.conf +30 -0
- data/tracks/erlang/exercises/zipper/{example.erl → src/example.erl} +1 -1
- data/tracks/erlang/exercises/zipper/src/zipper.app.src +9 -0
- data/tracks/erlang/exercises/zipper/test/zipper_tests.erl +100 -0
- data/tracks/go/config.json +14 -4
- data/tracks/go/exercises/acronym/acronym_test.go +1 -1
- data/tracks/go/exercises/all-your-base/all_your_base_test.go +8 -8
- data/tracks/go/exercises/luhn/luhn_test.go +6 -6
- data/tracks/go/exercises/word-search/word_search_test.go +4 -1
- data/tracks/go/exercises/wordy/example.go +2 -0
- data/tracks/go/exercises/wordy/wordy_test.go +8 -0
- data/tracks/haskell/.travis.yml +3 -57
- data/tracks/haskell/README.md +13 -10
- data/tracks/haskell/bin/test-all-examples +20 -0
- data/tracks/haskell/bin/test-example +73 -0
- data/tracks/haskell/bin/test-stub +43 -0
- data/tracks/haskell/config.json +0 -1
- data/tracks/haskell/exercises/accumulate/examples/fail-reverse/package.yaml +16 -0
- data/tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs +7 -0
- data/tracks/haskell/exercises/accumulate/examples/success-standard/src/Accumulate.hs +0 -7
- data/tracks/haskell/exercises/atbash-cipher/test/Tests.hs +1 -5
- data/tracks/haskell/exercises/forth/test/Tests.hs +1 -4
- data/tracks/haskell/exercises/leap/examples/error-nosig/package.yaml +16 -0
- data/tracks/haskell/exercises/leap/examples/error-nosig/src/LeapYear.hs +4 -0
- data/tracks/haskell/exercises/nucleotide-count/examples/success-standard/src/DNA.hs +2 -5
- data/tracks/haskell/exercises/nucleotide-count/src/DNA.hs +1 -4
- data/tracks/haskell/exercises/nucleotide-count/test/Tests.hs +3 -22
- data/tracks/haskell/exercises/prime-factors/test/Tests.hs +9 -15
- data/tracks/haskell/exercises/scrabble-score/test/Tests.hs +1 -5
- data/tracks/haskell/exercises/secret-handshake/examples/success-standard/src/SecretHandshake.hs +3 -21
- data/tracks/haskell/exercises/secret-handshake/src/SecretHandshake.hs +1 -0
- data/tracks/haskell/exercises/secret-handshake/test/Tests.hs +20 -23
- data/tracks/haskell/exercises/strain/examples/fail-reverse/package.yaml +16 -0
- data/tracks/haskell/exercises/strain/examples/fail-reverse/src/Strain.hs +9 -0
- data/tracks/haskell/exercises/triangle/test/Tests.hs +6 -1
- data/tracks/julia/config.json +20 -2
- data/tracks/julia/exercises/raindrops/example.jl +16 -0
- data/tracks/julia/exercises/raindrops/raindrops.jl +3 -0
- data/tracks/julia/exercises/raindrops/runtests.jl +72 -0
- data/tracks/julia/exercises/secret-handshake/example.jl +12 -0
- data/tracks/julia/exercises/secret-handshake/runtests.jl +51 -0
- data/tracks/julia/exercises/secret-handshake/secret-handshake.jl +3 -0
- metadata +198 -79
- data/tracks/erlang/exercises/accumulate/accumulate_tests.erl +0 -28
- data/tracks/erlang/exercises/anagram/anagram_tests.erl +0 -39
- data/tracks/erlang/exercises/bank-account/bank_account_tests.erl +0 -95
- data/tracks/erlang/exercises/circular-buffer/circular_buffer_tests.erl +0 -54
- data/tracks/erlang/exercises/clock/clock.erl +0 -14
- data/tracks/erlang/exercises/gigasecond/gigasecond_tests.erl +0 -29
- data/tracks/erlang/exercises/grade-school/grade_school_tests.erl +0 -49
- data/tracks/erlang/exercises/grains/grains_tests.erl +0 -31
- data/tracks/erlang/exercises/hamming/dna_tests.erl +0 -21
- data/tracks/erlang/exercises/hello-world/hello_world_tests.erl +0 -19
- data/tracks/erlang/exercises/largest-series-product/largest_series_product.erl +0 -5
- data/tracks/erlang/exercises/largest-series-product/largest_series_product_tests.erl +0 -54
- data/tracks/erlang/exercises/leap/leap_tests.erl +0 -20
- data/tracks/erlang/exercises/luhn/luhn_tests.erl +0 -19
- data/tracks/erlang/exercises/nucleotide-count/dna_tests.erl +0 -27
- data/tracks/erlang/exercises/phone-number/phone_tests.erl +0 -29
- data/tracks/erlang/exercises/rna-transcription/rna_transcription_tests.erl +0 -24
- data/tracks/erlang/exercises/robot-simulator/robot_simulator_tests.erl +0 -96
- data/tracks/erlang/exercises/roman-numerals/roman_numerals.erl +0 -6
- data/tracks/erlang/exercises/series/series_tests.erl +0 -6
- data/tracks/erlang/exercises/space-age/space_age_tests.erl +0 -48
- data/tracks/erlang/exercises/strain/strain_tests.erl +0 -49
- data/tracks/erlang/exercises/sum-of-multiples/sum_of_multiples_tests.erl +0 -37
- data/tracks/erlang/exercises/trinary/trinary_tests.erl +0 -37
- data/tracks/erlang/exercises/zipper/zipper_tests.erl +0 -103
- data/tracks/haskell/exercises/secret-handshake/.meta/DONT-TEST-STUB +0 -1
- data/tracks/haskell/exercises/secret-handshake/HINTS.md +0 -6
@@ -1,4 +1,4 @@
|
|
1
1
|
---
|
2
|
-
blurb: "
|
2
|
+
blurb: "Given a number, find the sum of all the multiples of particular numbers up to but not including that number."
|
3
3
|
source: "A variation on Problem 1 at Project Euler"
|
4
4
|
source_url: "http://projecteuler.net/problem=1"
|
@@ -1,4 +1,4 @@
|
|
1
1
|
---
|
2
|
-
blurb: "
|
2
|
+
blurb: "Take input text and output it transposed."
|
3
3
|
source: "Reddit r/dailyprogrammer challenge #270 [Easy]."
|
4
4
|
source_url: "https://www.reddit.com/r/dailyprogrammer/comments/4msu2x/challenge_270_easy_transpose_the_input_text"
|
@@ -1,4 +1,4 @@
|
|
1
1
|
---
|
2
|
-
blurb: "
|
2
|
+
blurb: "Convert a trinary number, represented as a string (e.g. '102012'), to its decimal equivalent using first principles."
|
3
3
|
source: "All of Computer Science"
|
4
4
|
source_url: "http://www.wolframalpha.com/input/?i=binary&a=*C.binary-_*MathWorld-"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Given two buckets of different size,
|
1
|
+
Given two buckets of different size, demonstrate how to measure an exact number of liters by strategically transferring liters of fluid between the buckets.
|
2
2
|
|
3
3
|
Since this mathematical problem is fairly subject to interpretation / individual approach, the tests have been written specifically to expect one overarching solution.
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
1
|
---
|
2
|
-
blurb: "Given two buckets of different size,
|
2
|
+
blurb: "Given two buckets of different size, demonstrate how to measure an exact number of liters."
|
3
3
|
source: "Water Pouring Problem"
|
4
4
|
source_url: "http://demonstrations.wolfram.com/WaterPouringProblem/"
|
@@ -1,3 +1,3 @@
|
|
1
1
|
---
|
2
|
-
blurb: "
|
2
|
+
blurb: "Given a phrase, count the occurrences of each word in that phrase."
|
3
3
|
source: "This is a classic toy problem, but we were reminded of it by seeing it in the Go Tour."
|
data/lib/trackler/version.rb
CHANGED
data/tracks/erlang/.gitignore
CHANGED
data/tracks/erlang/.travis.yml
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
---
|
2
2
|
language: erlang
|
3
3
|
otp_release:
|
4
|
-
- 17.
|
4
|
+
- 17.5
|
5
|
+
- 18.3
|
6
|
+
- 19.2
|
5
7
|
install:
|
6
8
|
- "./_test/bootstrap.sh"
|
7
9
|
script:
|
8
|
-
-
|
9
|
-
- bin/configlet .
|
10
|
+
- configlet .
|
10
11
|
- "./_test/check-exercises.escript"
|
11
12
|
cache:
|
12
|
-
- apt
|
13
|
+
- apt
|
14
|
+
- directories:
|
15
|
+
- $HOME/bin
|
16
|
+
|
13
17
|
sudo: false
|
@@ -0,0 +1,16 @@
|
|
1
|
+
EXERCISE_FOLDERS = \
|
2
|
+
$(sort $(shell find exercises -maxdepth 1 -mindepth 1 -type d))
|
3
|
+
|
4
|
+
SHELL = bash
|
5
|
+
|
6
|
+
REBAR3 = rebar3
|
7
|
+
|
8
|
+
test: $(EXERCISE_FOLDERS:%=%_test)
|
9
|
+
|
10
|
+
%_test:
|
11
|
+
@if [[ ! -f $*/rebar.conf ]]; then \
|
12
|
+
echo "$(*:exercises/%_test=%) not converted to rebar3"; \
|
13
|
+
false; \
|
14
|
+
fi
|
15
|
+
@echo "running tests for $(*:exercises/%_test=%)"
|
16
|
+
@cd $*; $(REBAR3) eunit
|
data/tracks/erlang/README.md
CHANGED
@@ -6,7 +6,83 @@ Exercism exercises in Erlang
|
|
6
6
|
|
7
7
|
## Contributing Guide
|
8
8
|
|
9
|
-
|
9
|
+
For general information about how exercism works, please see the
|
10
|
+
[contributing guide](https://github.com/exercism/x-api/blob/master/CONTRIBUTING.md#the-exercise-data).
|
11
|
+
|
12
|
+
### Seting up your system for local development on the track
|
13
|
+
|
14
|
+
Please make sure you have installed erlang/OTP and `rebar3` as
|
15
|
+
described on [Installing Erlang](http://exercism.io/languages/erlang/installing)
|
16
|
+
or `docs/INSTALLATION.md` in this repository. Also run
|
17
|
+
`bin/fetch-configlet` to download the JSON-checker.
|
18
|
+
|
19
|
+
Please make sure you use one of the releases of erlang/OTP as
|
20
|
+
specified in `.travis.yml`, as these are the ones officially tested
|
21
|
+
and supported by this track.
|
22
|
+
|
23
|
+
Feel free to use any feature that was introduced in the oldest version
|
24
|
+
of the range, while also avoiding everything that has been removed or
|
25
|
+
deprecated in the newest one.
|
26
|
+
|
27
|
+
### Implementing an exercise
|
28
|
+
|
29
|
+
When there is a mention of “slug-name” it refers to the slug as used
|
30
|
+
on exercism URLs, “erlangified_slug_name” does mean, that you have to
|
31
|
+
replace dashes (`-`) in the slug by underscores (`_`) to make them
|
32
|
+
compatible with erlang syntax.
|
33
|
+
|
34
|
+
1. Create a folder `exercises/<slug-name>`
|
35
|
+
2. Set up folder structure (`include`, `src`, and `test`).
|
36
|
+
3. Copy `rebar.conf`, `src/*.app.src`, and `include/exercism.hrl` from
|
37
|
+
another exercise.
|
38
|
+
3.1. Find the line `{eunit_tests, [{application, <erlangified_slug_name>}]}`
|
39
|
+
in `rebar.conf` and alter it to match the current exercise.
|
40
|
+
3.2. Rename `src/*.app.src` to `src/<erlangified_slug_name>`.
|
41
|
+
3.3. Change the old erlangified_slug_name on the first line to the new one.
|
42
|
+
3.4. Change the old slug-name on the second line to the new one.
|
43
|
+
3.5. Leave `include/exercism.hrl` untouched.
|
44
|
+
4. Create a testfile/-module in `test`-folder. It is prefered to name
|
45
|
+
it after the erlangified_slug_name and insert the boilerplate code
|
46
|
+
shown below.
|
47
|
+
5. Implement your example in `src/example.erl` and use `example` as
|
48
|
+
the name for the module.
|
49
|
+
6. Add tests. Make sure you are using the macro `?TESTED_MODULE` when
|
50
|
+
referencing the students module.
|
51
|
+
7. Run tests using `rebar3 eunit`.
|
52
|
+
|
53
|
+
Repeat steps 5., 6., and 7. until all tests are implemented and your
|
54
|
+
solution passes all tests.
|
55
|
+
|
56
|
+
If there is a `exercises/<slug-name>/canonical-data.json`
|
57
|
+
in [x-common](https://github.com/exercism/x-common), make sure to
|
58
|
+
implement your tests and examples in a way that the canonical data is
|
59
|
+
integrated and not violated.
|
60
|
+
|
61
|
+
You may add further tests, as long as they do not violate canonical
|
62
|
+
data and add value to the exercise or are necessary for erlang
|
63
|
+
specific things.
|
64
|
+
|
65
|
+
Also please make sure to add a `HINTS.md` with some hints for the
|
66
|
+
students if the exercise becomes tricky or might not be obvious.
|
67
|
+
|
68
|
+
```erl
|
69
|
+
-module(<test module name>).
|
70
|
+
|
71
|
+
-include("exercism.hrl").
|
72
|
+
-include_lib("eunit/include/eunit.hrl").
|
73
|
+
|
74
|
+
-define(TESTED_MODULE, (sut(<erlangified_slug_name>))).
|
75
|
+
```
|
76
|
+
|
77
|
+
### Before pushing
|
78
|
+
|
79
|
+
Please make sure, that all tests pass by running
|
80
|
+
`_test/check-exercises.escript`. On windows you might need to call
|
81
|
+
`escript _test/check-exercises.escript`. Also a run of `bin/configlet`
|
82
|
+
should pass without error message.
|
83
|
+
|
84
|
+
Both programms will be run on travis and a merge is unlikely when
|
85
|
+
tests fail.
|
10
86
|
|
11
87
|
## License
|
12
88
|
|
@@ -1,5 +1,18 @@
|
|
1
|
-
#!/bin/bash
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
2
3
|
set -x
|
3
|
-
|
4
|
-
#
|
5
|
-
|
4
|
+
|
5
|
+
# Make sure there is `~/bin`-folder.
|
6
|
+
[[ -d ~/bin ]] || mkdir -p ~/bin
|
7
|
+
|
8
|
+
# download `rebar3` and make it executable
|
9
|
+
if [[ ! -f ~/bin/rebar3 ]]; then
|
10
|
+
wget -O ~/bin/rebar3 https://s3.amazonaws.com/rebar3/rebar3
|
11
|
+
chmod a+x ~/bin/rebar3
|
12
|
+
fi
|
13
|
+
|
14
|
+
if [[ ! -f ~/bin/configlet ]]; then
|
15
|
+
./bin/fetch-configlet
|
16
|
+
cp ./bin/configlet ~/bin/configlet
|
17
|
+
fi
|
18
|
+
|
@@ -1,32 +1,72 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env escript
|
2
2
|
|
3
|
-
main(
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
main([])->
|
4
|
+
main(["all"]);
|
5
|
+
main(["all"]) ->
|
6
|
+
Examples = filelib:wildcard("exercises/*/rebar.conf"),
|
7
|
+
ExampleBasePaths = [extract_base_pathes(X) || X <- Examples],
|
8
|
+
Exercises = [X -- "exercises/" || X <- ExampleBasePaths],
|
9
|
+
run_exercises(Exercises);
|
10
|
+
main(["single", Exercise]) ->
|
11
|
+
main(["list", Exercise]);
|
12
|
+
main(["list"|Exercises]) ->
|
13
|
+
run_exercises(Exercises).
|
10
14
|
|
11
|
-
compile( File ) ->
|
12
|
-
Compile = compile:file( File, [binary, return_errors] ),
|
13
|
-
{compile, File, {ok, Module, Binary}} = {compile, File, Compile},
|
14
|
-
Load = code:load_binary( Module, File, Binary ),
|
15
|
-
{load, Module, Load} = {load, Module, Load},
|
16
|
-
{Module, Binary}.
|
17
15
|
|
16
|
+
extract_base_pathes(ConfPath) ->
|
17
|
+
ConfPath1 = lists:reverse(ConfPath),
|
18
|
+
ConfPath2 = ConfPath1 -- "rebar.conf/",
|
19
|
+
lists:reverse(ConfPath2).
|
18
20
|
|
19
|
-
compile_tests( {Example, {Example_module, _Binary}} ) ->
|
20
|
-
Filename = erlang:atom_to_list(Example_module) ++ "_tests.erl",
|
21
|
-
Filepath = filename:join( [filename:dirname(Example), Filename] ),
|
22
|
-
compile( Filepath ).
|
23
21
|
|
22
|
+
run_exercises([E|Es]) when is_list(E)->
|
23
|
+
run_exercises([E|Es], length([E|Es]), 0, 0).
|
24
24
|
|
25
|
-
run_tests( {_Example, {Module, _Binary}} ) ->
|
26
|
-
io:fwrite( "~p: ", [Module] ),
|
27
|
-
eunit:test( Module, [verbose] ).
|
28
25
|
|
26
|
+
run_exercises([], Items, Items, Result) ->
|
27
|
+
io:format("Finished.~n"),
|
28
|
+
halt(Result);
|
29
|
+
run_exercises([E|Es], Items, Current, Result) ->
|
30
|
+
io:format("Processing ~p. of ~p Items (~p%).~n",
|
31
|
+
[Current + 1, Items, Current/Items*100]),
|
32
|
+
run_exercises(Es, Items, Current + 1, Result + run_rebar(E)).
|
33
|
+
|
34
|
+
|
35
|
+
run_rebar(Exercise) ->
|
36
|
+
Rebar = os:find_executable("rebar3"),
|
37
|
+
Port = open_port({spawn_executable, Rebar},
|
38
|
+
[{line, 1024},
|
39
|
+
{cd, "exercises/" ++ Exercise},
|
40
|
+
{args, ["eunit"]},
|
41
|
+
exit_status,
|
42
|
+
in,
|
43
|
+
binary,
|
44
|
+
eof]),
|
45
|
+
loop_rebar(Port, no_exitcode, no_eof).
|
46
|
+
|
47
|
+
|
48
|
+
loop_rebar(Port, 0, eof) ->
|
49
|
+
true = port_close(Port),
|
50
|
+
0;
|
51
|
+
loop_rebar(Port, ExCode, eof) when is_integer(ExCode) ->
|
52
|
+
true = port_close(Port),
|
53
|
+
1;
|
54
|
+
loop_rebar(Port, ExCode, EOF) ->
|
55
|
+
{ExCode1, EOF1} =
|
56
|
+
receive
|
57
|
+
{Port, {data, {eol, Data}}} ->
|
58
|
+
io:format("~s~n", [Data]),
|
59
|
+
{ExCode, EOF};
|
60
|
+
{Port, {data, {noeol, Data}}} ->
|
61
|
+
io:format("~s", [Data]),
|
62
|
+
{ExCode, EOF};
|
63
|
+
{Port, {exit_status, Code}} ->
|
64
|
+
{Code, EOF};
|
65
|
+
{Port, eof} ->
|
66
|
+
{ExCode, eof};
|
67
|
+
Foo ->
|
68
|
+
io:format("~p~n", [Foo]),
|
69
|
+
{ExCode, EOF}
|
70
|
+
end,
|
71
|
+
loop_rebar(Port, ExCode1, EOF1).
|
29
72
|
|
30
|
-
usage() ->
|
31
|
-
io:fwrite( "Usage: ~s~n", [escript:script_name()] ),
|
32
|
-
io:fwrite( "~s will compile and run Erlang examples and test cases in sub directories of where it is started.~n", [escript:script_name()] ).
|
data/tracks/erlang/config.json
CHANGED
@@ -14,175 +14,175 @@
|
|
14
14
|
"topics": [],
|
15
15
|
"difficulty": 1
|
16
16
|
},
|
17
|
-
{
|
18
|
-
"slug": "rna-transcription",
|
19
|
-
"topics": [],
|
20
|
-
"difficulty": 1
|
21
|
-
},
|
22
17
|
{
|
23
18
|
"slug": "accumulate",
|
24
19
|
"topics": [],
|
25
20
|
"difficulty": 1
|
26
21
|
},
|
27
22
|
{
|
28
|
-
"slug": "
|
23
|
+
"slug": "rna-transcription",
|
29
24
|
"topics": [],
|
30
|
-
"difficulty":
|
25
|
+
"difficulty": 2
|
31
26
|
},
|
32
27
|
{
|
33
|
-
"slug": "
|
28
|
+
"slug": "bob",
|
34
29
|
"topics": [],
|
35
|
-
"difficulty":
|
30
|
+
"difficulty": 2
|
36
31
|
},
|
37
32
|
{
|
38
33
|
"slug": "strain",
|
39
34
|
"topics": [],
|
40
|
-
"difficulty":
|
35
|
+
"difficulty": 2
|
41
36
|
},
|
42
37
|
{
|
43
38
|
"slug": "hamming",
|
44
39
|
"topics": [],
|
45
|
-
"difficulty":
|
40
|
+
"difficulty": 2
|
46
41
|
},
|
47
42
|
{
|
48
43
|
"slug": "space-age",
|
49
44
|
"topics": [],
|
50
|
-
"difficulty":
|
45
|
+
"difficulty": 2
|
51
46
|
},
|
52
47
|
{
|
53
48
|
"slug": "grains",
|
54
49
|
"topics": [],
|
55
|
-
"difficulty":
|
50
|
+
"difficulty": 2
|
56
51
|
},
|
57
52
|
{
|
58
|
-
"slug": "
|
53
|
+
"slug": "nucleotide-count",
|
59
54
|
"topics": [],
|
60
|
-
"difficulty":
|
55
|
+
"difficulty": 2
|
61
56
|
},
|
62
57
|
{
|
63
|
-
"slug": "
|
58
|
+
"slug": "difference-of-squares",
|
64
59
|
"topics": [],
|
65
|
-
"difficulty":
|
60
|
+
"difficulty": 2
|
66
61
|
},
|
67
62
|
{
|
68
|
-
"slug": "
|
63
|
+
"slug": "triangle",
|
69
64
|
"topics": [],
|
70
|
-
"difficulty":
|
65
|
+
"difficulty": 2
|
71
66
|
},
|
72
67
|
{
|
73
|
-
"slug": "
|
68
|
+
"slug": "sum-of-multiples",
|
74
69
|
"topics": [],
|
75
|
-
"difficulty":
|
70
|
+
"difficulty": 3
|
76
71
|
},
|
77
72
|
{
|
78
|
-
"slug": "
|
73
|
+
"slug": "anagram",
|
79
74
|
"topics": [],
|
80
|
-
"difficulty":
|
75
|
+
"difficulty": 3
|
81
76
|
},
|
82
77
|
{
|
83
|
-
"slug": "
|
78
|
+
"slug": "atbash-cipher",
|
84
79
|
"topics": [],
|
85
|
-
"difficulty":
|
80
|
+
"difficulty": 3
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"slug": "phone-number",
|
84
|
+
"topics": [],
|
85
|
+
"difficulty": 3
|
86
86
|
},
|
87
87
|
{
|
88
88
|
"slug": "binary",
|
89
89
|
"topics": [],
|
90
|
-
"difficulty":
|
90
|
+
"difficulty": 3
|
91
91
|
},
|
92
92
|
{
|
93
|
-
"slug": "
|
93
|
+
"slug": "gigasecond",
|
94
94
|
"topics": [],
|
95
|
-
"difficulty":
|
95
|
+
"difficulty": 3
|
96
96
|
},
|
97
97
|
{
|
98
|
-
"slug": "
|
98
|
+
"slug": "trinary",
|
99
99
|
"topics": [],
|
100
|
-
"difficulty":
|
100
|
+
"difficulty": 3
|
101
101
|
},
|
102
102
|
{
|
103
|
-
"slug": "
|
103
|
+
"slug": "scrabble-score",
|
104
104
|
"topics": [],
|
105
|
-
"difficulty":
|
105
|
+
"difficulty": 3
|
106
106
|
},
|
107
107
|
{
|
108
|
-
"slug": "
|
108
|
+
"slug": "robot-simulator",
|
109
109
|
"topics": [],
|
110
|
-
"difficulty":
|
110
|
+
"difficulty": 4
|
111
111
|
},
|
112
112
|
{
|
113
|
-
"slug": "
|
113
|
+
"slug": "grade-school",
|
114
114
|
"topics": [],
|
115
|
-
"difficulty":
|
115
|
+
"difficulty": 4
|
116
116
|
},
|
117
117
|
{
|
118
|
-
"slug": "
|
118
|
+
"slug": "word-count",
|
119
119
|
"topics": [],
|
120
|
-
"difficulty":
|
120
|
+
"difficulty": 4
|
121
121
|
},
|
122
122
|
{
|
123
|
-
"slug": "
|
123
|
+
"slug": "clock",
|
124
124
|
"topics": [],
|
125
|
-
"difficulty":
|
125
|
+
"difficulty": 4
|
126
126
|
},
|
127
127
|
{
|
128
128
|
"slug": "allergies",
|
129
129
|
"topics": [],
|
130
|
-
"difficulty":
|
130
|
+
"difficulty": 4
|
131
131
|
},
|
132
132
|
{
|
133
|
-
"slug": "
|
133
|
+
"slug": "series",
|
134
134
|
"topics": [],
|
135
|
-
"difficulty":
|
135
|
+
"difficulty": 4
|
136
136
|
},
|
137
137
|
{
|
138
|
-
"slug": "
|
138
|
+
"slug": "parallel-letter-frequency",
|
139
139
|
"topics": [],
|
140
|
-
"difficulty":
|
140
|
+
"difficulty": 4
|
141
141
|
},
|
142
142
|
{
|
143
|
-
"slug": "
|
143
|
+
"slug": "roman-numerals",
|
144
144
|
"topics": [],
|
145
|
-
"difficulty":
|
145
|
+
"difficulty": 4
|
146
146
|
},
|
147
147
|
{
|
148
|
-
"slug": "
|
148
|
+
"slug": "largest-series-product",
|
149
149
|
"topics": [],
|
150
|
-
"difficulty":
|
150
|
+
"difficulty": 5
|
151
151
|
},
|
152
152
|
{
|
153
|
-
"slug": "
|
153
|
+
"slug": "etl",
|
154
154
|
"topics": [],
|
155
|
-
"difficulty":
|
155
|
+
"difficulty": 6
|
156
156
|
},
|
157
157
|
{
|
158
|
-
"slug": "
|
158
|
+
"slug": "bank-account",
|
159
159
|
"topics": [],
|
160
|
-
"difficulty":
|
160
|
+
"difficulty": 6
|
161
161
|
},
|
162
162
|
{
|
163
|
-
"slug": "
|
163
|
+
"slug": "luhn",
|
164
164
|
"topics": [],
|
165
|
-
"difficulty":
|
165
|
+
"difficulty": 6
|
166
166
|
},
|
167
167
|
{
|
168
|
-
"slug": "
|
168
|
+
"slug": "meetup",
|
169
169
|
"topics": [],
|
170
|
-
"difficulty":
|
170
|
+
"difficulty": 6
|
171
171
|
},
|
172
172
|
{
|
173
|
-
"slug": "
|
173
|
+
"slug": "circular-buffer",
|
174
174
|
"topics": [],
|
175
|
-
"difficulty":
|
175
|
+
"difficulty": 7
|
176
176
|
},
|
177
177
|
{
|
178
|
-
"slug": "
|
178
|
+
"slug": "beer-song",
|
179
179
|
"topics": [],
|
180
|
-
"difficulty":
|
180
|
+
"difficulty": 7
|
181
181
|
},
|
182
182
|
{
|
183
|
-
"slug": "
|
183
|
+
"slug": "zipper",
|
184
184
|
"topics": [],
|
185
|
-
"difficulty":
|
185
|
+
"difficulty": 8
|
186
186
|
}
|
187
187
|
],
|
188
188
|
"deprecated": [
|