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.
Files changed (323) hide show
  1. checksums.yaml +4 -4
  2. data/common/exercises/all-your-base/metadata.yml +1 -1
  3. data/common/exercises/allergies/metadata.yml +1 -1
  4. data/common/exercises/anagram/metadata.yml +1 -1
  5. data/common/exercises/beer-song/metadata.yml +1 -1
  6. data/common/exercises/binary-search-tree/metadata.yml +1 -1
  7. data/common/exercises/binary-search/metadata.yml +1 -1
  8. data/common/exercises/binary/metadata.yml +1 -1
  9. data/common/exercises/change/description.md +3 -3
  10. data/common/exercises/change/metadata.yml +1 -1
  11. data/common/exercises/crypto-square/description.md +1 -2
  12. data/common/exercises/etl/description.md +2 -2
  13. data/common/exercises/flatten-array/metadata.yml +1 -1
  14. data/common/exercises/food-chain/description.md +4 -5
  15. data/common/exercises/food-chain/metadata.yml +1 -1
  16. data/common/exercises/gigasecond/metadata.yml +1 -1
  17. data/common/exercises/grade-school/metadata.yml +1 -1
  18. data/common/exercises/grains/description.md +1 -1
  19. data/common/exercises/grains/metadata.yml +1 -1
  20. data/common/exercises/hamming/metadata.yml +1 -1
  21. data/common/exercises/hello-world/metadata.yml +1 -1
  22. data/common/exercises/hexadecimal/metadata.yml +1 -1
  23. data/common/exercises/house/metadata.yml +1 -1
  24. data/common/exercises/kindergarten-garden/metadata.yml +1 -1
  25. data/common/exercises/largest-series-product/metadata.yml +1 -1
  26. data/common/exercises/leap/metadata.yml +1 -1
  27. data/common/exercises/luhn/description.md +1 -1
  28. data/common/exercises/luhn/metadata.yml +1 -1
  29. data/common/exercises/matrix/metadata.yml +1 -1
  30. data/common/exercises/minesweeper/metadata.yml +1 -1
  31. data/common/exercises/nth-prime/metadata.yml +1 -1
  32. data/common/exercises/ocr-numbers/metadata.yml +1 -1
  33. data/common/exercises/octal/metadata.yml +1 -1
  34. data/common/exercises/paasio/metadata.yml +1 -1
  35. data/common/exercises/palindrome-products/description.md +30 -2
  36. data/common/exercises/palindrome-products/metadata.yml +1 -1
  37. data/common/exercises/parallel-letter-frequency/metadata.yml +1 -1
  38. data/common/exercises/pascals-triangle/metadata.yml +1 -1
  39. data/common/exercises/phone-number/metadata.yml +1 -1
  40. data/common/exercises/point-mutations/metadata.yml +1 -1
  41. data/common/exercises/protein-translation/description.md +1 -1
  42. data/common/exercises/protein-translation/metadata.yml +1 -1
  43. data/common/exercises/proverb/metadata.yml +1 -1
  44. data/common/exercises/queen-attack/metadata.yml +1 -1
  45. data/common/exercises/raindrops/metadata.yml +1 -1
  46. data/common/exercises/rna-transcription/metadata.yml +1 -1
  47. data/common/exercises/robot-name/metadata.yml +1 -1
  48. data/common/exercises/saddle-points/metadata.yml +1 -1
  49. data/common/exercises/say/metadata.yml +1 -1
  50. data/common/exercises/scale-generator/description.md +3 -4
  51. data/common/exercises/scale-generator/metadata.yml +1 -1
  52. data/common/exercises/scrabble-score/metadata.yml +1 -1
  53. data/common/exercises/secret-handshake/metadata.yml +1 -1
  54. data/common/exercises/series/metadata.yml +1 -1
  55. data/common/exercises/sieve/metadata.yml +1 -1
  56. data/common/exercises/space-age/metadata.yml +1 -1
  57. data/common/exercises/sum-of-multiples/description.md +2 -2
  58. data/common/exercises/sum-of-multiples/metadata.yml +1 -1
  59. data/common/exercises/transpose/description.md +1 -1
  60. data/common/exercises/transpose/metadata.yml +1 -1
  61. data/common/exercises/triangle/metadata.yml +1 -1
  62. data/common/exercises/trinary/metadata.yml +1 -1
  63. data/common/exercises/twelve-days/metadata.yml +1 -1
  64. data/common/exercises/two-bucket/description.md +1 -1
  65. data/common/exercises/two-bucket/metadata.yml +1 -1
  66. data/common/exercises/word-count/metadata.yml +1 -1
  67. data/common/exercises/zebra-puzzle/metadata.yml +1 -1
  68. data/lib/trackler/version.rb +1 -1
  69. data/tracks/erlang/.gitignore +2 -0
  70. data/tracks/erlang/.travis.yml +8 -4
  71. data/tracks/erlang/Makefile +16 -0
  72. data/tracks/erlang/README.md +77 -1
  73. data/tracks/erlang/_test/bootstrap.sh +17 -4
  74. data/tracks/erlang/_test/check-exercises.escript +64 -24
  75. data/tracks/erlang/config.json +63 -63
  76. data/tracks/erlang/docs/INSTALLATION.md +18 -0
  77. data/tracks/erlang/docs/TESTS.md +1 -3
  78. data/tracks/erlang/exercises/accumulate/include/exercism.hrl +6 -0
  79. data/tracks/erlang/exercises/accumulate/rebar.conf +30 -0
  80. data/tracks/erlang/exercises/accumulate/src/accumulate.app.src +9 -0
  81. data/tracks/erlang/exercises/accumulate/{example.erl → src/example.erl} +3 -2
  82. data/tracks/erlang/exercises/accumulate/test/accumulate_tests.erl +27 -0
  83. data/tracks/erlang/exercises/allergies/include/exercism.hrl +6 -0
  84. data/tracks/erlang/exercises/allergies/rebar.conf +30 -0
  85. data/tracks/erlang/exercises/allergies/src/allergies.app.src +9 -0
  86. data/tracks/erlang/exercises/allergies/{example.erl → src/example.erl} +9 -10
  87. data/tracks/erlang/exercises/allergies/{allergies_tests.erl → test/allergies_tests.erl} +17 -20
  88. data/tracks/erlang/exercises/anagram/include/exercism.hrl +6 -0
  89. data/tracks/erlang/exercises/anagram/rebar.conf +32 -0
  90. data/tracks/erlang/exercises/anagram/src/anagram.app.src +9 -0
  91. data/tracks/erlang/exercises/anagram/{example.erl → src/example.erl} +2 -1
  92. data/tracks/erlang/exercises/anagram/test/anagram_tests.erl +43 -0
  93. data/tracks/erlang/exercises/atbash-cipher/include/exercism.hrl +6 -0
  94. data/tracks/erlang/exercises/atbash-cipher/rebar.conf +30 -0
  95. data/tracks/erlang/exercises/atbash-cipher/src/atbash_cipher.app.src +9 -0
  96. data/tracks/erlang/exercises/atbash-cipher/{example.erl → src/example.erl} +1 -1
  97. data/tracks/erlang/exercises/atbash-cipher/{atbash_cipher_tests.erl → test/atbash_cipher_tests.erl} +6 -2
  98. data/tracks/erlang/exercises/bank-account/include/exercism.hrl +6 -0
  99. data/tracks/erlang/exercises/bank-account/rebar.conf +30 -0
  100. data/tracks/erlang/exercises/bank-account/src/bank_account.app.src +9 -0
  101. data/tracks/erlang/exercises/bank-account/{example.erl → src/example.erl} +1 -1
  102. data/tracks/erlang/exercises/bank-account/test/bank_account_tests.erl +98 -0
  103. data/tracks/erlang/exercises/beer-song/include/exercism.hrl +6 -0
  104. data/tracks/erlang/exercises/beer-song/rebar.conf +30 -0
  105. data/tracks/erlang/exercises/beer-song/src/beer_song.app.src +9 -0
  106. data/tracks/erlang/exercises/beer-song/{example.erl → src/example.erl} +1 -1
  107. data/tracks/erlang/exercises/beer-song/{beer_song_tests.erl → test/beer_song_tests.erl} +9 -9
  108. data/tracks/erlang/exercises/binary/include/exercism.hrl +6 -0
  109. data/tracks/erlang/exercises/binary/rebar.conf +30 -0
  110. data/tracks/erlang/exercises/binary/src/binary.app.src +9 -0
  111. data/tracks/erlang/exercises/binary/{example.erl → src/example.erl} +1 -1
  112. data/tracks/erlang/exercises/binary/{binary_string_tests.erl → test/binary_string_tests.erl} +7 -3
  113. data/tracks/erlang/exercises/bob/include/exercism.hrl +6 -0
  114. data/tracks/erlang/exercises/bob/rebar.conf +30 -0
  115. data/tracks/erlang/exercises/bob/src/bob.app.src +9 -0
  116. data/tracks/erlang/exercises/bob/{example.erl → src/example.erl} +1 -1
  117. data/tracks/erlang/exercises/bob/{bob_tests.erl → test/bob_tests.erl} +4 -4
  118. data/tracks/erlang/exercises/circular-buffer/include/exercism.hrl +6 -0
  119. data/tracks/erlang/exercises/circular-buffer/rebar.conf +30 -0
  120. data/tracks/erlang/exercises/circular-buffer/src/circular_buffer.app.src +9 -0
  121. data/tracks/erlang/exercises/circular-buffer/{example.erl → src/example.erl} +1 -34
  122. data/tracks/erlang/exercises/circular-buffer/test/circular_buffer_tests.erl +58 -0
  123. data/tracks/erlang/exercises/clock/include/exercism.hrl +6 -0
  124. data/tracks/erlang/exercises/clock/rebar.conf +30 -0
  125. data/tracks/erlang/exercises/clock/src/clock.app.src +9 -0
  126. data/tracks/erlang/exercises/clock/{example.erl → src/example.erl} +1 -1
  127. data/tracks/erlang/exercises/clock/{clock_tests.erl → test/clock_tests.erl} +51 -48
  128. data/tracks/erlang/exercises/difference-of-squares/include/exercism.hrl +6 -0
  129. data/tracks/erlang/exercises/difference-of-squares/rebar.conf +30 -0
  130. data/tracks/erlang/exercises/difference-of-squares/src/difference_of_squares.app.src +9 -0
  131. data/tracks/erlang/exercises/difference-of-squares/{example.erl → src/example.erl} +1 -1
  132. data/tracks/erlang/exercises/difference-of-squares/{difference_of_squares_tests.erl → test/difference_of_squares_tests.erl} +7 -3
  133. data/tracks/erlang/exercises/etl/include/exercism.hrl +6 -0
  134. data/tracks/erlang/exercises/etl/rebar.conf +30 -0
  135. data/tracks/erlang/exercises/etl/src/etl.app.src +9 -0
  136. data/tracks/erlang/exercises/etl/{example.erl → src/example.erl} +1 -2
  137. data/tracks/erlang/exercises/etl/{etl_tests.erl → test/etl_tests.erl} +3 -4
  138. data/tracks/erlang/exercises/gigasecond/include/exercism.hrl +6 -0
  139. data/tracks/erlang/exercises/gigasecond/rebar.conf +30 -0
  140. data/tracks/erlang/exercises/gigasecond/{example.erl → src/example.erl} +1 -2
  141. data/tracks/erlang/exercises/gigasecond/src/gigasecond.app.src +9 -0
  142. data/tracks/erlang/exercises/gigasecond/test/gigasecond_tests.erl +22 -0
  143. data/tracks/erlang/exercises/grade-school/include/exercism.hrl +6 -0
  144. data/tracks/erlang/exercises/grade-school/rebar.conf +30 -0
  145. data/tracks/erlang/exercises/grade-school/{example.erl → src/example.erl} +1 -1
  146. data/tracks/erlang/exercises/grade-school/src/grade_school.app.src +9 -0
  147. data/tracks/erlang/exercises/grade-school/test/grade_school_tests.erl +47 -0
  148. data/tracks/erlang/exercises/grains/include/exercism.hrl +6 -0
  149. data/tracks/erlang/exercises/grains/rebar.conf +30 -0
  150. data/tracks/erlang/exercises/grains/{example.erl → src/example.erl} +1 -2
  151. data/tracks/erlang/exercises/grains/src/grains.app.src +9 -0
  152. data/tracks/erlang/exercises/grains/test/grains_tests.erl +32 -0
  153. data/tracks/erlang/exercises/hamming/include/exercism.hrl +6 -0
  154. data/tracks/erlang/exercises/hamming/rebar.conf +30 -0
  155. data/tracks/erlang/exercises/hamming/{example.erl → src/example.erl} +1 -1
  156. data/tracks/erlang/exercises/hamming/src/hamming.app.src +9 -0
  157. data/tracks/erlang/exercises/hamming/test/hamming_tests.erl +24 -0
  158. data/tracks/erlang/exercises/hello-world/include/exercism.hrl +6 -0
  159. data/tracks/erlang/exercises/hello-world/rebar.conf +30 -0
  160. data/tracks/erlang/exercises/hello-world/{example.erl → src/example.erl} +1 -1
  161. data/tracks/erlang/exercises/hello-world/src/hello_world.app.src +9 -0
  162. data/tracks/erlang/exercises/hello-world/test/hello_world_tests.erl +18 -0
  163. data/tracks/erlang/exercises/largest-series-product/include/exercism.hrl +6 -0
  164. data/tracks/erlang/exercises/largest-series-product/rebar.conf +30 -0
  165. data/tracks/erlang/exercises/largest-series-product/{example.erl → src/example.erl} +1 -1
  166. data/tracks/erlang/exercises/largest-series-product/src/largest_series_product.app.src +9 -0
  167. data/tracks/erlang/exercises/largest-series-product/test/largest_series_product_tests.erl +57 -0
  168. data/tracks/erlang/exercises/leap/include/exercism.hrl +6 -0
  169. data/tracks/erlang/exercises/leap/rebar.conf +30 -0
  170. data/tracks/erlang/exercises/leap/{example.erl → src/example.erl} +1 -1
  171. data/tracks/erlang/exercises/leap/src/leap.app.src +9 -0
  172. data/tracks/erlang/exercises/leap/test/leap_tests.erl +18 -0
  173. data/tracks/erlang/exercises/luhn/include/exercism.hrl +6 -0
  174. data/tracks/erlang/exercises/luhn/rebar.conf +30 -0
  175. data/tracks/erlang/exercises/luhn/{example.erl → src/example.erl} +1 -1
  176. data/tracks/erlang/exercises/luhn/src/luhn.app.src +9 -0
  177. data/tracks/erlang/exercises/luhn/test/luhn_tests.erl +18 -0
  178. data/tracks/erlang/exercises/meetup/include/exercism.hrl +6 -0
  179. data/tracks/erlang/exercises/meetup/rebar.conf +30 -0
  180. data/tracks/erlang/exercises/meetup/{example.erl → src/example.erl} +1 -2
  181. data/tracks/erlang/exercises/meetup/src/meetup.app.src +9 -0
  182. data/tracks/erlang/exercises/meetup/{meetup_tests.erl → test/meetup_tests.erl} +94 -95
  183. data/tracks/erlang/exercises/nucleotide-count/include/exercism.hrl +6 -0
  184. data/tracks/erlang/exercises/nucleotide-count/rebar.conf +30 -0
  185. data/tracks/erlang/exercises/nucleotide-count/{example.erl → src/example.erl} +1 -1
  186. data/tracks/erlang/exercises/nucleotide-count/src/nucleotide_count.app.src +9 -0
  187. data/tracks/erlang/exercises/nucleotide-count/test/dna_tests.erl +30 -0
  188. data/tracks/erlang/exercises/parallel-letter-frequency/include/exercism.hrl +6 -0
  189. data/tracks/erlang/exercises/parallel-letter-frequency/rebar.conf +30 -0
  190. data/tracks/erlang/exercises/parallel-letter-frequency/{example.erl → src/example.erl} +1 -1
  191. data/tracks/erlang/exercises/parallel-letter-frequency/src/parallel_letter_frequency.app.src +9 -0
  192. data/tracks/erlang/exercises/parallel-letter-frequency/{parallel_letter_frequency_tests.erl → test/parallel_letter_frequency_tests.erl} +6 -2
  193. data/tracks/erlang/exercises/phone-number/include/exercism.hrl +6 -0
  194. data/tracks/erlang/exercises/phone-number/rebar.conf +30 -0
  195. data/tracks/erlang/exercises/phone-number/{example.erl → src/example.erl} +1 -1
  196. data/tracks/erlang/exercises/phone-number/src/phone_number.app.src +9 -0
  197. data/tracks/erlang/exercises/phone-number/test/phone_tests.erl +28 -0
  198. data/tracks/erlang/exercises/rna-transcription/include/exercism.hrl +6 -0
  199. data/tracks/erlang/exercises/rna-transcription/rebar.conf +30 -0
  200. data/tracks/erlang/exercises/rna-transcription/{example.erl → src/example.erl} +1 -1
  201. data/tracks/erlang/exercises/rna-transcription/src/rna_transcription.app.src +9 -0
  202. data/tracks/erlang/exercises/rna-transcription/test/rna_transcription_tests.erl +24 -0
  203. data/tracks/erlang/exercises/robot-simulator/include/exercism.hrl +6 -0
  204. data/tracks/erlang/exercises/robot-simulator/rebar.conf +30 -0
  205. data/tracks/erlang/exercises/robot-simulator/{example.erl → src/example.erl} +1 -1
  206. data/tracks/erlang/exercises/robot-simulator/src/robot_simulator.app.src +9 -0
  207. data/tracks/erlang/exercises/robot-simulator/test/robot_simulator_tests.erl +100 -0
  208. data/tracks/erlang/exercises/roman-numerals/include/exercism.hrl +6 -0
  209. data/tracks/erlang/exercises/roman-numerals/rebar.conf +30 -0
  210. data/tracks/erlang/exercises/roman-numerals/{example.erl → src/example.erl} +1 -1
  211. data/tracks/erlang/exercises/roman-numerals/src/roman_numerals.app.src +9 -0
  212. data/tracks/erlang/exercises/roman-numerals/{roman_numerals_tests.erl → test/roman_numerals_tests.erl} +3 -4
  213. data/tracks/erlang/exercises/scrabble-score/include/exercism.hrl +6 -0
  214. data/tracks/erlang/exercises/scrabble-score/rebar.conf +30 -0
  215. data/tracks/erlang/exercises/scrabble-score/{example.erl → src/example.erl} +2 -2
  216. data/tracks/erlang/exercises/scrabble-score/src/scrabble_score.app.src +9 -0
  217. data/tracks/erlang/exercises/scrabble-score/{scrabble_score_tests.erl → test/scrabble_score_tests.erl} +5 -1
  218. data/tracks/erlang/exercises/series/include/exercism.hrl +6 -0
  219. data/tracks/erlang/exercises/series/rebar.conf +30 -0
  220. data/tracks/erlang/exercises/series/{example.erl → src/example.erl} +1 -1
  221. data/tracks/erlang/exercises/series/src/series.app.src +9 -0
  222. data/tracks/erlang/exercises/series/test/series_tests.erl +10 -0
  223. data/tracks/erlang/exercises/space-age/include/exercism.hrl +6 -0
  224. data/tracks/erlang/exercises/space-age/rebar.conf +30 -0
  225. data/tracks/erlang/exercises/space-age/{example.erl → src/example.erl} +1 -1
  226. data/tracks/erlang/exercises/space-age/src/space_age.app.src +9 -0
  227. data/tracks/erlang/exercises/space-age/test/space_age_tests.erl +51 -0
  228. data/tracks/erlang/exercises/strain/include/exercism.hrl +6 -0
  229. data/tracks/erlang/exercises/strain/rebar.conf +30 -0
  230. data/tracks/erlang/exercises/strain/{example.erl → src/example.erl} +1 -1
  231. data/tracks/erlang/exercises/strain/src/strain.app.src +9 -0
  232. data/tracks/erlang/exercises/strain/test/strain_tests.erl +52 -0
  233. data/tracks/erlang/exercises/sum-of-multiples/include/exercism.hrl +6 -0
  234. data/tracks/erlang/exercises/sum-of-multiples/rebar.conf +30 -0
  235. data/tracks/erlang/exercises/sum-of-multiples/{example.erl → src/example.erl} +1 -1
  236. data/tracks/erlang/exercises/sum-of-multiples/src/sum_of_multiples.app.src +9 -0
  237. data/tracks/erlang/exercises/sum-of-multiples/test/sum_of_multiples_tests.erl +39 -0
  238. data/tracks/erlang/exercises/triangle/include/exercism.hrl +6 -0
  239. data/tracks/erlang/exercises/triangle/rebar.conf +30 -0
  240. data/tracks/erlang/exercises/triangle/{example.erl → src/example.erl} +1 -1
  241. data/tracks/erlang/exercises/triangle/src/triangle.app.src +9 -0
  242. data/tracks/erlang/exercises/triangle/{triangle_tests.erl → test/triangle_tests.erl} +19 -18
  243. data/tracks/erlang/exercises/trinary/include/exercism.hrl +6 -0
  244. data/tracks/erlang/exercises/trinary/rebar.conf +30 -0
  245. data/tracks/erlang/exercises/trinary/{example.erl → src/example.erl} +1 -2
  246. data/tracks/erlang/exercises/trinary/src/trinary.app.src +9 -0
  247. data/tracks/erlang/exercises/trinary/test/trinary_tests.erl +36 -0
  248. data/tracks/erlang/exercises/word-count/include/exercism.hrl +6 -0
  249. data/tracks/erlang/exercises/word-count/rebar.conf +30 -0
  250. data/tracks/erlang/exercises/word-count/{example.erl → src/example.erl} +1 -1
  251. data/tracks/erlang/exercises/word-count/src/word_count.app.src +9 -0
  252. data/tracks/erlang/exercises/word-count/{word_count_tests.erl → test/word_count_tests.erl} +4 -2
  253. data/tracks/erlang/exercises/zipper/include/exercism.hrl +6 -0
  254. data/tracks/erlang/exercises/zipper/rebar.conf +30 -0
  255. data/tracks/erlang/exercises/zipper/{example.erl → src/example.erl} +1 -1
  256. data/tracks/erlang/exercises/zipper/src/zipper.app.src +9 -0
  257. data/tracks/erlang/exercises/zipper/test/zipper_tests.erl +100 -0
  258. data/tracks/go/config.json +14 -4
  259. data/tracks/go/exercises/acronym/acronym_test.go +1 -1
  260. data/tracks/go/exercises/all-your-base/all_your_base_test.go +8 -8
  261. data/tracks/go/exercises/luhn/luhn_test.go +6 -6
  262. data/tracks/go/exercises/word-search/word_search_test.go +4 -1
  263. data/tracks/go/exercises/wordy/example.go +2 -0
  264. data/tracks/go/exercises/wordy/wordy_test.go +8 -0
  265. data/tracks/haskell/.travis.yml +3 -57
  266. data/tracks/haskell/README.md +13 -10
  267. data/tracks/haskell/bin/test-all-examples +20 -0
  268. data/tracks/haskell/bin/test-example +73 -0
  269. data/tracks/haskell/bin/test-stub +43 -0
  270. data/tracks/haskell/config.json +0 -1
  271. data/tracks/haskell/exercises/accumulate/examples/fail-reverse/package.yaml +16 -0
  272. data/tracks/haskell/exercises/accumulate/examples/fail-reverse/src/Accumulate.hs +7 -0
  273. data/tracks/haskell/exercises/accumulate/examples/success-standard/src/Accumulate.hs +0 -7
  274. data/tracks/haskell/exercises/atbash-cipher/test/Tests.hs +1 -5
  275. data/tracks/haskell/exercises/forth/test/Tests.hs +1 -4
  276. data/tracks/haskell/exercises/leap/examples/error-nosig/package.yaml +16 -0
  277. data/tracks/haskell/exercises/leap/examples/error-nosig/src/LeapYear.hs +4 -0
  278. data/tracks/haskell/exercises/nucleotide-count/examples/success-standard/src/DNA.hs +2 -5
  279. data/tracks/haskell/exercises/nucleotide-count/src/DNA.hs +1 -4
  280. data/tracks/haskell/exercises/nucleotide-count/test/Tests.hs +3 -22
  281. data/tracks/haskell/exercises/prime-factors/test/Tests.hs +9 -15
  282. data/tracks/haskell/exercises/scrabble-score/test/Tests.hs +1 -5
  283. data/tracks/haskell/exercises/secret-handshake/examples/success-standard/src/SecretHandshake.hs +3 -21
  284. data/tracks/haskell/exercises/secret-handshake/src/SecretHandshake.hs +1 -0
  285. data/tracks/haskell/exercises/secret-handshake/test/Tests.hs +20 -23
  286. data/tracks/haskell/exercises/strain/examples/fail-reverse/package.yaml +16 -0
  287. data/tracks/haskell/exercises/strain/examples/fail-reverse/src/Strain.hs +9 -0
  288. data/tracks/haskell/exercises/triangle/test/Tests.hs +6 -1
  289. data/tracks/julia/config.json +20 -2
  290. data/tracks/julia/exercises/raindrops/example.jl +16 -0
  291. data/tracks/julia/exercises/raindrops/raindrops.jl +3 -0
  292. data/tracks/julia/exercises/raindrops/runtests.jl +72 -0
  293. data/tracks/julia/exercises/secret-handshake/example.jl +12 -0
  294. data/tracks/julia/exercises/secret-handshake/runtests.jl +51 -0
  295. data/tracks/julia/exercises/secret-handshake/secret-handshake.jl +3 -0
  296. metadata +198 -79
  297. data/tracks/erlang/exercises/accumulate/accumulate_tests.erl +0 -28
  298. data/tracks/erlang/exercises/anagram/anagram_tests.erl +0 -39
  299. data/tracks/erlang/exercises/bank-account/bank_account_tests.erl +0 -95
  300. data/tracks/erlang/exercises/circular-buffer/circular_buffer_tests.erl +0 -54
  301. data/tracks/erlang/exercises/clock/clock.erl +0 -14
  302. data/tracks/erlang/exercises/gigasecond/gigasecond_tests.erl +0 -29
  303. data/tracks/erlang/exercises/grade-school/grade_school_tests.erl +0 -49
  304. data/tracks/erlang/exercises/grains/grains_tests.erl +0 -31
  305. data/tracks/erlang/exercises/hamming/dna_tests.erl +0 -21
  306. data/tracks/erlang/exercises/hello-world/hello_world_tests.erl +0 -19
  307. data/tracks/erlang/exercises/largest-series-product/largest_series_product.erl +0 -5
  308. data/tracks/erlang/exercises/largest-series-product/largest_series_product_tests.erl +0 -54
  309. data/tracks/erlang/exercises/leap/leap_tests.erl +0 -20
  310. data/tracks/erlang/exercises/luhn/luhn_tests.erl +0 -19
  311. data/tracks/erlang/exercises/nucleotide-count/dna_tests.erl +0 -27
  312. data/tracks/erlang/exercises/phone-number/phone_tests.erl +0 -29
  313. data/tracks/erlang/exercises/rna-transcription/rna_transcription_tests.erl +0 -24
  314. data/tracks/erlang/exercises/robot-simulator/robot_simulator_tests.erl +0 -96
  315. data/tracks/erlang/exercises/roman-numerals/roman_numerals.erl +0 -6
  316. data/tracks/erlang/exercises/series/series_tests.erl +0 -6
  317. data/tracks/erlang/exercises/space-age/space_age_tests.erl +0 -48
  318. data/tracks/erlang/exercises/strain/strain_tests.erl +0 -49
  319. data/tracks/erlang/exercises/sum-of-multiples/sum_of_multiples_tests.erl +0 -37
  320. data/tracks/erlang/exercises/trinary/trinary_tests.erl +0 -37
  321. data/tracks/erlang/exercises/zipper/zipper_tests.erl +0 -103
  322. data/tracks/haskell/exercises/secret-handshake/.meta/DONT-TEST-STUB +0 -1
  323. data/tracks/haskell/exercises/secret-handshake/HINTS.md +0 -6
@@ -0,0 +1,6 @@
1
+ sut(Module) ->
2
+ {ok, Files} = file:list_dir("./src"),
3
+ case lists:member(atom_to_list(Module) ++ ".erl", Files) of
4
+ true -> Module;
5
+ false -> example
6
+ end.
@@ -0,0 +1,30 @@
1
+ %% Erlang compiler options
2
+ {erl_opts, [debug_info]}.
3
+
4
+ {deps, []}.
5
+
6
+ {dialyzer, [
7
+ {warnings, [underspecs, no_return]},
8
+ {get_warnings, true},
9
+ {plt_apps, top_level_deps}, % top_level_deps | all_deps
10
+ {plt_extra_apps, []},
11
+ {plt_location, local}, % local | "/my/file/name"
12
+ {plt_prefix, "rebar3"},
13
+ {base_plt_apps, [stdlib, kernel, crypto]},
14
+ {base_plt_location, global}, % global | "/my/file/name"
15
+ {base_plt_prefix, "rebar3"}
16
+ ]}.
17
+
18
+ %% eunit:test(Tests)
19
+ {eunit_tests, [{application, bank_account}]}.
20
+ %% Options for eunit:test(Tests, Opts)
21
+ {eunit_opts, [verbose]}.
22
+
23
+ %% == xref ==
24
+
25
+ {xref_warnings, true}.
26
+
27
+ %% xref checks to run
28
+ {xref_checks, [undefined_function_calls, undefined_functions,
29
+ locals_not_used, exports_not_used,
30
+ deprecated_function_calls, deprecated_functions]}.
@@ -0,0 +1,9 @@
1
+ {application, bank_account,
2
+ [{description, "exercism.io - bank-account"},
3
+ {vsn, "git"},
4
+ {modules, []},
5
+ {registered, []},
6
+ {applications, [kernel,
7
+ stdlib]},
8
+ {env, []}
9
+ ]}.
@@ -1,4 +1,4 @@
1
- -module(bank_account).
1
+ -module(example).
2
2
 
3
3
  -export( [balance/1, charge/2, close/1, create/0, deposit/2, withdraw/2] ).
4
4
 
@@ -0,0 +1,98 @@
1
+ -module(bank_account_tests).
2
+
3
+ -include("exercism.hrl").
4
+ -include_lib("eunit/include/eunit.hrl").
5
+
6
+ -define(TESTED_MODULE, (sut(bank_account))).
7
+
8
+ create_test() ->
9
+ BankAccount = ?TESTED_MODULE:create(),
10
+ ?assert(?TESTED_MODULE:balance(BankAccount) =:= 0).
11
+
12
+ close_account_test() ->
13
+ BankAccount = ?TESTED_MODULE:create(),
14
+ ?TESTED_MODULE:deposit(BankAccount, 1),
15
+ Amount = ?TESTED_MODULE:close(BankAccount),
16
+ ?assert(Amount =:= 1),
17
+ ?assertEqual({error, account_closed}, ?TESTED_MODULE:balance( BankAccount )).
18
+
19
+ deposit_test() ->
20
+ BankAccount = ?TESTED_MODULE:create(),
21
+ ?TESTED_MODULE:deposit(BankAccount, 1),
22
+ ?assert(?TESTED_MODULE:balance(BankAccount) =:= 1).
23
+
24
+ deposit_fail_test() ->
25
+ BankAccount = ?TESTED_MODULE:create(),
26
+ ?TESTED_MODULE:deposit(BankAccount, -1),
27
+ ?assert(?TESTED_MODULE:balance(BankAccount) =:= 0).
28
+
29
+ deposit_many_test() ->
30
+ BankAccount = ?TESTED_MODULE:create(),
31
+ [erlang:spawn( fun () -> ?TESTED_MODULE:deposit(BankAccount, X) end ) || X <- lists:seq(1, 10)],
32
+ First = ?TESTED_MODULE:balance(BankAccount),
33
+ timer:sleep(100),
34
+ Last = ?TESTED_MODULE:balance(BankAccount),
35
+ ?assert(First < 55),
36
+ ?assert(Last =:= 55).
37
+
38
+ withdraw_test() ->
39
+ BankAccount = ?TESTED_MODULE:create(),
40
+ ?TESTED_MODULE:deposit(BankAccount, 10 ),
41
+ Amount = ?TESTED_MODULE:withdraw(BankAccount, 1),
42
+ ?assert(Amount =:= 1),
43
+ ?assert(?TESTED_MODULE:balance(BankAccount) =:= 9).
44
+
45
+ withdraw_fail_test() ->
46
+ BankAccount = ?TESTED_MODULE:create(),
47
+ ?TESTED_MODULE:deposit(BankAccount, 10),
48
+ Amount = ?TESTED_MODULE:withdraw(BankAccount, -1),
49
+ ?assert(Amount =:= 0),
50
+ ?assert(?TESTED_MODULE:balance(BankAccount) =:= 10).
51
+
52
+ withdraw_excessive_test() ->
53
+ BankAccount = ?TESTED_MODULE:create(),
54
+ ?TESTED_MODULE:deposit(BankAccount, 10 ),
55
+ Amount = ?TESTED_MODULE:withdraw(BankAccount, 20),
56
+ ?assert(Amount =:= 10),
57
+ ?assert(?TESTED_MODULE:balance(BankAccount) =:= 0).
58
+
59
+ withdraw_many_test() ->
60
+ BankAccount = ?TESTED_MODULE:create(),
61
+ ?TESTED_MODULE:deposit(BankAccount, 55 ),
62
+ [erlang:spawn( fun () -> ?TESTED_MODULE:withdraw(BankAccount, X) end ) || X <- lists:seq(1, 10)],
63
+ First = ?TESTED_MODULE:balance(BankAccount),
64
+ timer:sleep(100),
65
+ Last = ?TESTED_MODULE:balance(BankAccount),
66
+ ?assert(First > 0),
67
+ ?assert(Last =:= 0).
68
+
69
+ charge_test() ->
70
+ BankAccount = ?TESTED_MODULE:create(),
71
+ ?TESTED_MODULE:deposit(BankAccount, 10),
72
+ Amount = ?TESTED_MODULE:charge(BankAccount, 2),
73
+ ?assert(Amount =:= 2),
74
+ ?assert(?TESTED_MODULE:balance(BankAccount) =:= 8).
75
+
76
+ charge_fail_test() ->
77
+ BankAccount = ?TESTED_MODULE:create(),
78
+ ?TESTED_MODULE:deposit(BankAccount, 10),
79
+ Amount = ?TESTED_MODULE:charge(BankAccount, -2),
80
+ ?assert(Amount =:= 0),
81
+ ?assert(?TESTED_MODULE:balance(BankAccount) =:= 10).
82
+
83
+ charge_excessive_test() ->
84
+ BankAccount = ?TESTED_MODULE:create(),
85
+ ?TESTED_MODULE:deposit(BankAccount, 10),
86
+ Amount = ?TESTED_MODULE:charge(BankAccount, 20),
87
+ ?assert(Amount =:= 0),
88
+ ?assert(?TESTED_MODULE:balance(BankAccount) =:= 10).
89
+
90
+ charge_many_test() ->
91
+ BankAccount = ?TESTED_MODULE:create(),
92
+ ?TESTED_MODULE:deposit(BankAccount, 55 ),
93
+ [erlang:spawn( fun () -> ?TESTED_MODULE:charge(BankAccount, 10) end ) || _X <- lists:seq(1, 10)],
94
+ First = ?TESTED_MODULE:balance(BankAccount),
95
+ timer:sleep(100),
96
+ Last = ?TESTED_MODULE:balance(BankAccount),
97
+ ?assert(First > 0),
98
+ ?assert(Last =:= 5).
@@ -0,0 +1,6 @@
1
+ sut(Module) ->
2
+ {ok, Files} = file:list_dir("./src"),
3
+ case lists:member(atom_to_list(Module) ++ ".erl", Files) of
4
+ true -> Module;
5
+ false -> example
6
+ end.
@@ -0,0 +1,30 @@
1
+ %% Erlang compiler options
2
+ {erl_opts, [debug_info]}.
3
+
4
+ {deps, []}.
5
+
6
+ {dialyzer, [
7
+ {warnings, [underspecs, no_return]},
8
+ {get_warnings, true},
9
+ {plt_apps, top_level_deps}, % top_level_deps | all_deps
10
+ {plt_extra_apps, []},
11
+ {plt_location, local}, % local | "/my/file/name"
12
+ {plt_prefix, "rebar3"},
13
+ {base_plt_apps, [stdlib, kernel, crypto]},
14
+ {base_plt_location, global}, % global | "/my/file/name"
15
+ {base_plt_prefix, "rebar3"}
16
+ ]}.
17
+
18
+ %% eunit:test(Tests)
19
+ {eunit_tests, [{application, beer_song}]}.
20
+ %% Options for eunit:test(Tests, Opts)
21
+ {eunit_opts, [verbose]}.
22
+
23
+ %% == xref ==
24
+
25
+ {xref_warnings, true}.
26
+
27
+ %% xref checks to run
28
+ {xref_checks, [undefined_function_calls, undefined_functions,
29
+ locals_not_used, exports_not_used,
30
+ deprecated_function_calls, deprecated_functions]}.
@@ -0,0 +1,9 @@
1
+ {application, beer_song,
2
+ [{description, "exercism.io - beer-song"},
3
+ {vsn, "git"},
4
+ {modules, []},
5
+ {registered, []},
6
+ {applications, [kernel,
7
+ stdlib]},
8
+ {env, []}
9
+ ]}.
@@ -1,4 +1,4 @@
1
- -module(beer_song).
1
+ -module(example).
2
2
  -export([verse/1, sing/1, sing/2]).
3
3
 
4
4
  bottles(0) ->
@@ -1,32 +1,32 @@
1
1
  -module(beer_song_tests).
2
+
3
+ -include("exercism.hrl").
2
4
  -include_lib("eunit/include/eunit.hrl").
3
5
 
4
- % To run tests:
5
- % erl -make
6
- % erl -noshell -eval "eunit:test(beer_song, [verbose])" -s init stop
6
+ -define(TESTED_MODULE, (sut(beer_song))).
7
7
 
8
8
  verse_test() ->
9
- compare_nested_lists(beer_song:verse(8),
9
+ compare_nested_lists(?TESTED_MODULE:verse(8),
10
10
  "8 bottles of beer on the wall, 8 bottles of beer.\n"
11
11
  "Take one down and pass it around, 7 bottles of beer on the wall.\n").
12
12
 
13
13
  verse_0_test() ->
14
- compare_nested_lists(beer_song:verse(0),
14
+ compare_nested_lists(?TESTED_MODULE:verse(0),
15
15
  "No more bottles of beer on the wall, no more bottles of beer.\n"
16
16
  "Go to the store and buy some more, 99 bottles of beer on the wall.\n").
17
17
 
18
18
  verse_1_test() ->
19
- compare_nested_lists(beer_song:verse(1),
19
+ compare_nested_lists(?TESTED_MODULE:verse(1),
20
20
  "1 bottle of beer on the wall, 1 bottle of beer.\n"
21
21
  "Take it down and pass it around, no more bottles of beer on the wall.\n").
22
22
 
23
23
  verse_2_test() ->
24
- compare_nested_lists(beer_song:verse(2),
24
+ compare_nested_lists(?TESTED_MODULE:verse(2),
25
25
  "2 bottles of beer on the wall, 2 bottles of beer.\n"
26
26
  "Take one down and pass it around, 1 bottle of beer on the wall.\n").
27
27
 
28
28
  singing_several_verses_test() ->
29
- compare_nested_lists(beer_song:sing(8, 6),
29
+ compare_nested_lists(?TESTED_MODULE:sing(8, 6),
30
30
  "8 bottles of beer on the wall, 8 bottles of beer.\n"
31
31
  "Take one down and pass it around, 7 bottles of beer on the wall.\n\n"
32
32
 
@@ -37,7 +37,7 @@ singing_several_verses_test() ->
37
37
  "Take one down and pass it around, 5 bottles of beer on the wall.\n\n").
38
38
 
39
39
  sing_all_the_rest_of_the_verses_test() ->
40
- compare_nested_lists(beer_song:sing(3),
40
+ compare_nested_lists(?TESTED_MODULE:sing(3),
41
41
  "3 bottles of beer on the wall, 3 bottles of beer.\n"
42
42
  "Take one down and pass it around, 2 bottles of beer on the wall.\n\n"
43
43
 
@@ -0,0 +1,6 @@
1
+ sut(Module) ->
2
+ {ok, Files} = file:list_dir("./src"),
3
+ case lists:member(atom_to_list(Module) ++ ".erl", Files) of
4
+ true -> Module;
5
+ false -> example
6
+ end.
@@ -0,0 +1,30 @@
1
+ %% Erlang compiler options
2
+ {erl_opts, [debug_info]}.
3
+
4
+ {deps, []}.
5
+
6
+ {dialyzer, [
7
+ {warnings, [underspecs, no_return]},
8
+ {get_warnings, true},
9
+ {plt_apps, top_level_deps}, % top_level_deps | all_deps
10
+ {plt_extra_apps, []},
11
+ {plt_location, local}, % local | "/my/file/name"
12
+ {plt_prefix, "rebar3"},
13
+ {base_plt_apps, [stdlib, kernel, crypto]},
14
+ {base_plt_location, global}, % global | "/my/file/name"
15
+ {base_plt_prefix, "rebar3"}
16
+ ]}.
17
+
18
+ %% eunit:test(Tests)
19
+ {eunit_tests, [{application, beer_song}]}.
20
+ %% Options for eunit:test(Tests, Opts)
21
+ {eunit_opts, [verbose]}.
22
+
23
+ %% == xref ==
24
+
25
+ {xref_warnings, true}.
26
+
27
+ %% xref checks to run
28
+ {xref_checks, [undefined_function_calls, undefined_functions,
29
+ locals_not_used, exports_not_used,
30
+ deprecated_function_calls, deprecated_functions]}.
@@ -0,0 +1,9 @@
1
+ {application, binary,
2
+ [{description, "exercism.io - binary"},
3
+ {vsn, "git"},
4
+ {modules, []},
5
+ {registered, []},
6
+ {applications, [kernel,
7
+ stdlib]},
8
+ {env, []}
9
+ ]}.
@@ -1,4 +1,4 @@
1
- -module(binary_string). % binary is a "sticky module" so we have to use another name.
1
+ -module(example). % binary is a "sticky module" so we have to use another name.
2
2
  -export( [to_decimal/1] ).
3
3
 
4
4
  to_decimal( String ) ->
@@ -1,6 +1,9 @@
1
1
  -module(binary_string_tests).
2
+
3
+ -include("exercism.hrl").
2
4
  -include_lib("eunit/include/eunit.hrl").
3
5
 
6
+ -define(TESTED_MODULE, (sut(binary_string))).
4
7
 
5
8
  one_test() -> check( "1" ).
6
9
 
@@ -16,7 +19,8 @@ twenty_six_test() -> check( "11010" ).
16
19
 
17
20
  large_test() -> check( "10001101000" ).
18
21
 
19
- carrot_test() -> ?assert(0 =:= binary_string:to_decimal( "carrot" )).
22
+ carrot_test() ->
23
+ ?assert(0 =:= ?TESTED_MODULE:to_decimal( "carrot" )).
20
24
 
21
- check( String ) ->
22
- ?assert(binary_string:to_decimal( String ) =:= erlang:list_to_integer( String, 2 )).
25
+ check(String) ->
26
+ ?assert(?TESTED_MODULE:to_decimal(String) =:= erlang:list_to_integer(String, 2)).
@@ -0,0 +1,6 @@
1
+ sut(Module) ->
2
+ {ok, Files} = file:list_dir("./src"),
3
+ case lists:member(atom_to_list(Module) ++ ".erl", Files) of
4
+ true -> Module;
5
+ false -> example
6
+ end.
@@ -0,0 +1,30 @@
1
+ %% Erlang compiler options
2
+ {erl_opts, [debug_info]}.
3
+
4
+ {deps, []}.
5
+
6
+ {dialyzer, [
7
+ {warnings, [underspecs, no_return]},
8
+ {get_warnings, true},
9
+ {plt_apps, top_level_deps}, % top_level_deps | all_deps
10
+ {plt_extra_apps, []},
11
+ {plt_location, local}, % local | "/my/file/name"
12
+ {plt_prefix, "rebar3"},
13
+ {base_plt_apps, [stdlib, kernel, crypto]},
14
+ {base_plt_location, global}, % global | "/my/file/name"
15
+ {base_plt_prefix, "rebar3"}
16
+ ]}.
17
+
18
+ %% eunit:test(Tests)
19
+ {eunit_tests, [{application, beer_song}]}.
20
+ %% Options for eunit:test(Tests, Opts)
21
+ {eunit_opts, [verbose]}.
22
+
23
+ %% == xref ==
24
+
25
+ {xref_warnings, true}.
26
+
27
+ %% xref checks to run
28
+ {xref_checks, [undefined_function_calls, undefined_functions,
29
+ locals_not_used, exports_not_used,
30
+ deprecated_function_calls, deprecated_functions]}.
@@ -0,0 +1,9 @@
1
+ {application, bob,
2
+ [{description, "exercism.io - bob"},
3
+ {vsn, "git"},
4
+ {modules, []},
5
+ {registered, []},
6
+ {applications, [kernel,
7
+ stdlib]},
8
+ {env, []}
9
+ ]}.
@@ -1,4 +1,4 @@
1
- -module(bob).
1
+ -module(example).
2
2
 
3
3
  -export([response_for/1]).
4
4
 
@@ -1,10 +1,10 @@
1
- % To run tests:
2
- % erl -make && erl -noshell -eval "eunit:test(bob, [verbose])" -s init stop
3
-
4
1
  -module(bob_tests).
5
2
 
3
+ -include("exercism.hrl").
6
4
  -include_lib("eunit/include/eunit.hrl").
7
5
 
6
+ -define(TESTED_MODULE, (sut(bob))).
7
+
8
8
  responds_to_something_test() ->
9
9
  bob_responds("Tom-ay-to, tom-aaaah-to.", "Whatever.").
10
10
 
@@ -69,4 +69,4 @@ responds_to_unicode_non_shout_test() ->
69
69
  bob_responds("\xdcML\xe4\xdcTS!", "Whatever.").
70
70
 
71
71
  bob_responds(Question, Answer) ->
72
- ?assertEqual(Answer, bob:response_for(Question)).
72
+ ?assertEqual(Answer, ?TESTED_MODULE:response_for(Question)).
@@ -0,0 +1,6 @@
1
+ sut(Module) ->
2
+ {ok, Files} = file:list_dir("./src"),
3
+ case lists:member(atom_to_list(Module) ++ ".erl", Files) of
4
+ true -> Module;
5
+ false -> example
6
+ end.
@@ -0,0 +1,30 @@
1
+ %% Erlang compiler options
2
+ {erl_opts, [debug_info]}.
3
+
4
+ {deps, []}.
5
+
6
+ {dialyzer, [
7
+ {warnings, [underspecs, no_return]},
8
+ {get_warnings, true},
9
+ {plt_apps, top_level_deps}, % top_level_deps | all_deps
10
+ {plt_extra_apps, []},
11
+ {plt_location, local}, % local | "/my/file/name"
12
+ {plt_prefix, "rebar3"},
13
+ {base_plt_apps, [stdlib, kernel, crypto]},
14
+ {base_plt_location, global}, % global | "/my/file/name"
15
+ {base_plt_prefix, "rebar3"}
16
+ ]}.
17
+
18
+ %% eunit:test(Tests)
19
+ {eunit_tests, [{application, beer_song}]}.
20
+ %% Options for eunit:test(Tests, Opts)
21
+ {eunit_opts, [verbose]}.
22
+
23
+ %% == xref ==
24
+
25
+ {xref_warnings, true}.
26
+
27
+ %% xref checks to run
28
+ {xref_checks, [undefined_function_calls, undefined_functions,
29
+ locals_not_used, exports_not_used,
30
+ deprecated_function_calls, deprecated_functions]}.