trackler 2.0.7.0 → 2.0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/common/exercises/counter/metadata.yml +0 -4
  4. data/common/exercises/error-handling/metadata.yml +0 -4
  5. data/common/exercises/etl/canonical-data.json +1 -1
  6. data/common/exercises/hello-world/canonical-data.json +9 -21
  7. data/common/exercises/hello-world/description.md +7 -42
  8. data/common/exercises/hello-world/metadata.yml +1 -1
  9. data/common/exercises/lens-person/metadata.yml +0 -3
  10. data/common/exercises/luhn/canonical-data.json +17 -17
  11. data/common/exercises/nucleotide-codons/metadata.yml +0 -2
  12. data/common/exercises/react/metadata.yml +0 -2
  13. data/common/exercises/rectangles/metadata.yml +0 -3
  14. data/common/exercises/variable-length-quantity/metadata.yml +0 -2
  15. data/fixtures/tracks/snowflake/config.json +17 -0
  16. data/fixtures/tracks/snowflake/exercises/snowflake-only/description.md +1 -0
  17. data/fixtures/tracks/snowflake/exercises/snowflake-only/metadata.yml +4 -0
  18. data/lib/trackler/description.rb +27 -0
  19. data/lib/trackler/guaranteed_file.rb +77 -0
  20. data/lib/trackler/implementations.rb +5 -5
  21. data/lib/trackler/metadata.rb +27 -0
  22. data/lib/trackler/null_track.rb +22 -0
  23. data/lib/trackler/problem.rb +32 -34
  24. data/lib/trackler/track.rb +1 -1
  25. data/lib/trackler/version.rb +1 -1
  26. data/tracks/csharp/exercises/hello-world/Example.cs +2 -5
  27. data/tracks/csharp/exercises/hello-world/HelloWorldTest.cs +2 -16
  28. data/tracks/elixir/config.json +7 -0
  29. data/tracks/elixir/exercises/series/example.exs +13 -0
  30. data/tracks/elixir/exercises/series/series.exs +11 -0
  31. data/tracks/elixir/exercises/series/series_test.exs +53 -0
  32. data/tracks/erlang/README.md +3 -3
  33. data/tracks/erlang/config.json +15 -11
  34. data/tracks/erlang/exercises/{binary → all-your-base}/include/exercism.hrl +0 -0
  35. data/tracks/erlang/exercises/{binary → all-your-base}/rebar.config +0 -0
  36. data/tracks/erlang/exercises/{trinary/src/trinary.app.src → all-your-base/src/all_your_base.app.src} +2 -2
  37. data/tracks/erlang/exercises/all-your-base/src/example.erl +33 -0
  38. data/tracks/erlang/exercises/all-your-base/test/all_your_base_tests.erl +69 -0
  39. data/tracks/erlang/exercises/hello-world/src/example.erl +4 -4
  40. data/tracks/erlang/exercises/hello-world/test/hello_world_tests.erl +3 -12
  41. data/tracks/erlang/exercises/{trinary → rotational-cipher}/include/exercism.hrl +0 -0
  42. data/tracks/erlang/exercises/{trinary → rotational-cipher}/rebar.config +8 -1
  43. data/tracks/erlang/exercises/rotational-cipher/src/example.erl +19 -0
  44. data/tracks/erlang/exercises/{binary/src/binary.app.src → rotational-cipher/src/rotational_cipher.app.src} +2 -2
  45. data/tracks/erlang/exercises/rotational-cipher/test/rotational_cipher_tests.erl +98 -0
  46. data/tracks/fsharp/exercises/grep/GrepTest.fs +57 -0
  47. data/tracks/fsharp/exercises/hello-world/Example.fs +1 -1
  48. data/tracks/fsharp/exercises/hello-world/HelloWorldTest.fs +2 -12
  49. data/tracks/go/.travis.yml +7 -15
  50. data/tracks/go/exercises/hello-world/example.go +4 -8
  51. data/tracks/go/exercises/hello-world/hello_test.go +20 -16
  52. data/tracks/go/exercises/hello-world/hello_world.go +12 -2
  53. data/tracks/groovy/exercises/hello-world/Example.groovy +2 -2
  54. data/tracks/groovy/exercises/hello-world/HelloWorld.groovy +1 -1
  55. data/tracks/groovy/exercises/hello-world/HelloWorldSpec.groovy +1 -14
  56. data/tracks/haskell/config.json +6 -0
  57. data/tracks/haskell/exercises/hello-world/HINTS.md +6 -0
  58. data/tracks/haskell/exercises/hello-world/examples/success-standard/package.yaml +16 -0
  59. data/tracks/haskell/exercises/hello-world/examples/success-standard/src/HelloWorld.hs +4 -0
  60. data/tracks/haskell/exercises/hello-world/package.yaml +19 -0
  61. data/tracks/haskell/exercises/hello-world/src/HelloWorld.hs +4 -0
  62. data/tracks/haskell/exercises/hello-world/stack.yaml +1 -0
  63. data/tracks/haskell/exercises/hello-world/test/Tests.hs +13 -0
  64. data/tracks/idris/config.json +9 -0
  65. data/tracks/idris/exercises/leap/Leap.ipkg +5 -0
  66. data/tracks/idris/exercises/leap/Makefile +23 -0
  67. data/tracks/idris/exercises/leap/src/Leap.idr +5 -0
  68. data/tracks/idris/exercises/leap/src/Test/Leap.idr +37 -0
  69. data/tracks/idris/exercises/leap/src/example.idr +8 -0
  70. data/tracks/{typescript/exercises → java}/.keep +0 -0
  71. data/tracks/java/config.json +115 -172
  72. data/tracks/java/exercises/anagram/src/test/java/AnagramTest.java +41 -13
  73. data/tracks/java/exercises/list-ops/build.gradle +18 -0
  74. data/tracks/java/exercises/list-ops/src/example/java/ListOps.java +51 -0
  75. data/tracks/java/exercises/list-ops/src/main/java/.keep +0 -0
  76. data/tracks/java/exercises/list-ops/src/test/java/ListOpsTest.java +316 -0
  77. data/tracks/java/exercises/palindrome-products/src/example/java/Palindromes.java +28 -62
  78. data/tracks/java/exercises/palindrome-products/src/test/java/PalindromesTest.java +26 -83
  79. data/tracks/java/exercises/settings.gradle +1 -0
  80. data/tracks/julia/config.json +1 -2
  81. data/tracks/julia/exercises/hello-world/example.jl +2 -2
  82. data/tracks/julia/exercises/hello-world/runtests.jl +1 -6
  83. data/tracks/lua/exercises/TRACK_HINTS.md +8 -0
  84. data/tracks/lua/exercises/hello-world/example.lua +2 -3
  85. data/tracks/lua/exercises/hello-world/hello-world.lua +18 -0
  86. data/tracks/lua/exercises/hello-world/hello-world_spec.lua +6 -12
  87. data/tracks/ocaml/exercises/phone-number/example.ml +8 -18
  88. data/tracks/ocaml/exercises/phone-number/phone_number.mli +1 -7
  89. data/tracks/ocaml/exercises/phone-number/test.ml +24 -23
  90. data/tracks/ocaml/tools/test-generator/src/special_cases.ml +6 -0
  91. data/tracks/ocaml/tools/test-generator/templates/phone-number/template.ml +21 -0
  92. data/tracks/pony/config.json +2 -2
  93. data/tracks/pony/exercises/hello-world/example.pony +1 -2
  94. data/tracks/pony/exercises/hello-world/test.pony +0 -1
  95. data/tracks/rust/config.json +0 -1
  96. data/tracks/rust/exercises/hello-world/example.rs +2 -5
  97. data/tracks/rust/exercises/hello-world/tests/hello-world.rs +2 -14
  98. data/tracks/scala/config.json +11 -2
  99. data/tracks/scala/docs/LEARNING.md +10 -2
  100. data/tracks/scala/docs/RESOURCES.md +0 -1
  101. data/tracks/scala/docs/TESTS.md +10 -6
  102. data/tracks/scala/exercises/rail-fence-cipher/build.sbt +3 -0
  103. data/tracks/scala/exercises/rail-fence-cipher/example.scala +46 -0
  104. data/tracks/scala/exercises/rail-fence-cipher/src/main/scala/RailFenceCipher.scala +0 -0
  105. data/tracks/scala/exercises/rail-fence-cipher/src/test/scala/RailFenceCipherTest.scala +42 -0
  106. data/tracks/scala/testgen/src/main/scala/RailFenceCipherTestGenerator.scala +59 -0
  107. data/tracks/typescript/.gitignore +7 -0
  108. data/tracks/typescript/.travis.yml +18 -1
  109. data/tracks/typescript/Dangerfile +43 -0
  110. data/tracks/typescript/Makefile +57 -0
  111. data/tracks/typescript/README.md +38 -5
  112. data/tracks/typescript/SETUP.md +24 -0
  113. data/tracks/typescript/common/package.json +37 -0
  114. data/tracks/typescript/common/tsconfig.json +21 -0
  115. data/tracks/typescript/common/tslint.json +127 -0
  116. data/tracks/typescript/common/yarn.lock +2697 -0
  117. data/tracks/typescript/config.json +82 -2
  118. data/tracks/typescript/docs/ABOUT.md +1 -0
  119. data/tracks/typescript/docs/INSTALLATION.md +17 -0
  120. data/tracks/typescript/docs/LEARNING.md +8 -0
  121. data/tracks/typescript/docs/RESOURCES.md +7 -0
  122. data/tracks/typescript/docs/TESTS.md +36 -0
  123. data/tracks/typescript/exercises/anagram/anagram.example.ts +23 -0
  124. data/tracks/typescript/exercises/anagram/anagram.test.ts +82 -0
  125. data/tracks/typescript/exercises/anagram/package.json +37 -0
  126. data/tracks/typescript/exercises/anagram/tsconfig.json +21 -0
  127. data/tracks/typescript/exercises/anagram/tslint.json +127 -0
  128. data/tracks/typescript/exercises/anagram/yarn.lock +2697 -0
  129. data/tracks/typescript/exercises/beer-song/beer-song.example.ts +36 -0
  130. data/tracks/typescript/exercises/beer-song/beer-song.test.ts +360 -0
  131. data/tracks/typescript/exercises/beer-song/package.json +37 -0
  132. data/tracks/typescript/exercises/beer-song/tsconfig.json +21 -0
  133. data/tracks/typescript/exercises/beer-song/tslint.json +127 -0
  134. data/tracks/typescript/exercises/beer-song/yarn.lock +2697 -0
  135. data/tracks/typescript/exercises/bob/bob.example.ts +24 -0
  136. data/tracks/typescript/exercises/bob/bob.test.ts +92 -0
  137. data/tracks/typescript/exercises/bob/package.json +37 -0
  138. data/tracks/typescript/exercises/bob/tsconfig.json +21 -0
  139. data/tracks/typescript/exercises/bob/tslint.json +127 -0
  140. data/tracks/typescript/exercises/bob/yarn.lock +2697 -0
  141. data/tracks/typescript/exercises/gigasecond/gigasecond.example.ts +11 -0
  142. data/tracks/typescript/exercises/gigasecond/gigasecond.test.ts +29 -0
  143. data/tracks/typescript/exercises/gigasecond/package.json +37 -0
  144. data/tracks/typescript/exercises/gigasecond/tsconfig.json +21 -0
  145. data/tracks/typescript/exercises/gigasecond/tslint.json +127 -0
  146. data/tracks/typescript/exercises/gigasecond/yarn.lock +2697 -0
  147. data/tracks/typescript/exercises/hamming/hamming.example.ts +19 -0
  148. data/tracks/typescript/exercises/hamming/hamming.test.ts +39 -0
  149. data/tracks/typescript/exercises/hamming/package.json +37 -0
  150. data/tracks/typescript/exercises/hamming/tsconfig.json +21 -0
  151. data/tracks/typescript/exercises/hamming/tslint.json +127 -0
  152. data/tracks/typescript/exercises/hamming/yarn.lock +2697 -0
  153. data/tracks/typescript/exercises/hello-world/hello-world.example.ts +8 -0
  154. data/tracks/typescript/exercises/hello-world/hello-world.test.ts +17 -0
  155. data/tracks/typescript/exercises/hello-world/package.json +37 -0
  156. data/tracks/typescript/exercises/hello-world/tsconfig.json +21 -0
  157. data/tracks/typescript/exercises/hello-world/tslint.json +127 -0
  158. data/tracks/typescript/exercises/hello-world/yarn.lock +2697 -0
  159. data/tracks/typescript/exercises/leap/leap.example.ts +6 -0
  160. data/tracks/typescript/exercises/leap/leap.test.ts +39 -0
  161. data/tracks/typescript/exercises/leap/package.json +37 -0
  162. data/tracks/typescript/exercises/leap/tsconfig.json +21 -0
  163. data/tracks/typescript/exercises/leap/tslint.json +127 -0
  164. data/tracks/typescript/exercises/leap/yarn.lock +2697 -0
  165. data/tracks/typescript/exercises/pangram/package.json +37 -0
  166. data/tracks/typescript/exercises/pangram/pangram.example.ts +32 -0
  167. data/tracks/typescript/exercises/pangram/pangram.test.ts +50 -0
  168. data/tracks/typescript/exercises/pangram/tsconfig.json +21 -0
  169. data/tracks/typescript/exercises/pangram/tslint.json +127 -0
  170. data/tracks/typescript/exercises/pangram/yarn.lock +2697 -0
  171. data/tracks/typescript/exercises/phone-number/package.json +37 -0
  172. data/tracks/typescript/exercises/phone-number/phone-number.example.ts +21 -0
  173. data/tracks/typescript/exercises/phone-number/phone-number.test.ts +55 -0
  174. data/tracks/typescript/exercises/phone-number/tsconfig.json +21 -0
  175. data/tracks/typescript/exercises/phone-number/tslint.json +127 -0
  176. data/tracks/typescript/exercises/phone-number/yarn.lock +2697 -0
  177. data/tracks/typescript/exercises/rna-transcription/package.json +37 -0
  178. data/tracks/typescript/exercises/rna-transcription/rna-transcription.example.ts +13 -0
  179. data/tracks/typescript/exercises/rna-transcription/rna-transcription.test.ts +45 -0
  180. data/tracks/typescript/exercises/rna-transcription/tsconfig.json +21 -0
  181. data/tracks/typescript/exercises/rna-transcription/tslint.json +127 -0
  182. data/tracks/typescript/exercises/rna-transcription/yarn.lock +2697 -0
  183. data/tracks/typescript/exercises/say/package.json +37 -0
  184. data/tracks/typescript/exercises/say/say.example.ts +95 -0
  185. data/tracks/typescript/exercises/say/say.test.ts +78 -0
  186. data/tracks/typescript/exercises/say/tsconfig.json +21 -0
  187. data/tracks/typescript/exercises/say/tslint.json +127 -0
  188. data/tracks/typescript/exercises/say/yarn.lock +2697 -0
  189. data/tracks/typescript/exercises/word-count/package.json +37 -0
  190. data/tracks/typescript/exercises/word-count/tsconfig.json +21 -0
  191. data/tracks/typescript/exercises/word-count/tslint.json +127 -0
  192. data/tracks/typescript/exercises/word-count/word-count.example.ts +16 -0
  193. data/tracks/typescript/exercises/word-count/word-count.test.ts +65 -0
  194. data/tracks/typescript/exercises/word-count/yarn.lock +2697 -0
  195. data/tracks/typescript/exercises/wordy/package.json +37 -0
  196. data/tracks/typescript/exercises/wordy/tsconfig.json +21 -0
  197. data/tracks/typescript/exercises/wordy/tslint.json +127 -0
  198. data/tracks/typescript/exercises/wordy/wordy.example.ts +40 -0
  199. data/tracks/typescript/exercises/wordy/wordy.test.ts +89 -0
  200. data/tracks/typescript/exercises/wordy/yarn.lock +2697 -0
  201. data/tracks/typescript/img/icon.png +0 -0
  202. data/tracks/typescript/img/icon.svg +10 -0
  203. metadata +134 -15
  204. data/tracks/erlang/exercises/binary/src/example.erl +0 -20
  205. data/tracks/erlang/exercises/binary/test/binary_string_tests.erl +0 -26
  206. data/tracks/erlang/exercises/trinary/Makefile +0 -10
  207. data/tracks/erlang/exercises/trinary/src/example.erl +0 -66
  208. data/tracks/erlang/exercises/trinary/test/trinary_tests.erl +0 -36
  209. data/tracks/fsharp/exercises/hello-world/HINTS.md +0 -5
Binary file
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="721" height="721" viewBox="0, 0, 721, 721">
4
+ <g id="Image">
5
+ <text transform="matrix(1, 0, 0, 1, 349.298, 467.943)">
6
+ <tspan x="-281.6" y="74.076" font-family="AdobeGothicStd-Bold" font-size="512" fill="#D81D4E">T</tspan>
7
+ <tspan x="1.024" y="74.076" font-family="AdobeGothicStd-Bold" font-size="512" fill="#212121">S</tspan>
8
+ </text>
9
+ </g>
10
+ </svg>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7.0
4
+ version: 2.0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Owen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-20 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -505,11 +505,18 @@ files:
505
505
  - fixtures/tracks/shoes/config.json
506
506
  - fixtures/tracks/shoes/hello-world/example.ext
507
507
  - fixtures/tracks/shoes/hello-world/hello_world_test.ext
508
+ - fixtures/tracks/snowflake/config.json
509
+ - fixtures/tracks/snowflake/exercises/snowflake-only/description.md
510
+ - fixtures/tracks/snowflake/exercises/snowflake-only/metadata.yml
508
511
  - fixtures/tracks/vehicles/config.json
509
512
  - lib/trackler.rb
513
+ - lib/trackler/description.rb
510
514
  - lib/trackler/file_bundle.rb
515
+ - lib/trackler/guaranteed_file.rb
511
516
  - lib/trackler/implementation.rb
512
517
  - lib/trackler/implementations.rb
518
+ - lib/trackler/metadata.rb
519
+ - lib/trackler/null_track.rb
513
520
  - lib/trackler/path.rb
514
521
  - lib/trackler/problem.rb
515
522
  - lib/trackler/problems.rb
@@ -2251,6 +2258,9 @@ files:
2251
2258
  - tracks/elixir/exercises/scrabble-score/example.exs
2252
2259
  - tracks/elixir/exercises/scrabble-score/scrabble.exs
2253
2260
  - tracks/elixir/exercises/scrabble-score/scrabble_score_test.exs
2261
+ - tracks/elixir/exercises/series/example.exs
2262
+ - tracks/elixir/exercises/series/series.exs
2263
+ - tracks/elixir/exercises/series/series_test.exs
2254
2264
  - tracks/elixir/exercises/sieve/example.exs
2255
2265
  - tracks/elixir/exercises/sieve/sieve.exs
2256
2266
  - tracks/elixir/exercises/sieve/sieve_test.exs
@@ -2473,6 +2483,11 @@ files:
2473
2483
  - tracks/erlang/exercises/accumulate/src/accumulate.app.src
2474
2484
  - tracks/erlang/exercises/accumulate/src/example.erl
2475
2485
  - tracks/erlang/exercises/accumulate/test/accumulate_tests.erl
2486
+ - tracks/erlang/exercises/all-your-base/include/exercism.hrl
2487
+ - tracks/erlang/exercises/all-your-base/rebar.config
2488
+ - tracks/erlang/exercises/all-your-base/src/all_your_base.app.src
2489
+ - tracks/erlang/exercises/all-your-base/src/example.erl
2490
+ - tracks/erlang/exercises/all-your-base/test/all_your_base_tests.erl
2476
2491
  - tracks/erlang/exercises/allergies/include/exercism.hrl
2477
2492
  - tracks/erlang/exercises/allergies/rebar.config
2478
2493
  - tracks/erlang/exercises/allergies/src/allergies.app.src
@@ -2498,11 +2513,6 @@ files:
2498
2513
  - tracks/erlang/exercises/beer-song/src/beer_song.app.src
2499
2514
  - tracks/erlang/exercises/beer-song/src/example.erl
2500
2515
  - tracks/erlang/exercises/beer-song/test/beer_song_tests.erl
2501
- - tracks/erlang/exercises/binary/include/exercism.hrl
2502
- - tracks/erlang/exercises/binary/rebar.config
2503
- - tracks/erlang/exercises/binary/src/binary.app.src
2504
- - tracks/erlang/exercises/binary/src/example.erl
2505
- - tracks/erlang/exercises/binary/test/binary_string_tests.erl
2506
2516
  - tracks/erlang/exercises/bob/include/exercism.hrl
2507
2517
  - tracks/erlang/exercises/bob/rebar.config
2508
2518
  - tracks/erlang/exercises/bob/src/bob.app.src
@@ -2605,6 +2615,11 @@ files:
2605
2615
  - tracks/erlang/exercises/roman-numerals/src/example.erl
2606
2616
  - tracks/erlang/exercises/roman-numerals/src/roman_numerals.app.src
2607
2617
  - tracks/erlang/exercises/roman-numerals/test/roman_numerals_tests.erl
2618
+ - tracks/erlang/exercises/rotational-cipher/include/exercism.hrl
2619
+ - tracks/erlang/exercises/rotational-cipher/rebar.config
2620
+ - tracks/erlang/exercises/rotational-cipher/src/example.erl
2621
+ - tracks/erlang/exercises/rotational-cipher/src/rotational_cipher.app.src
2622
+ - tracks/erlang/exercises/rotational-cipher/test/rotational_cipher_tests.erl
2608
2623
  - tracks/erlang/exercises/scrabble-score/include/exercism.hrl
2609
2624
  - tracks/erlang/exercises/scrabble-score/rebar.config
2610
2625
  - tracks/erlang/exercises/scrabble-score/src/example.erl
@@ -2635,12 +2650,6 @@ files:
2635
2650
  - tracks/erlang/exercises/triangle/src/example.erl
2636
2651
  - tracks/erlang/exercises/triangle/src/triangle.app.src
2637
2652
  - tracks/erlang/exercises/triangle/test/triangle_tests.erl
2638
- - tracks/erlang/exercises/trinary/Makefile
2639
- - tracks/erlang/exercises/trinary/include/exercism.hrl
2640
- - tracks/erlang/exercises/trinary/rebar.config
2641
- - tracks/erlang/exercises/trinary/src/example.erl
2642
- - tracks/erlang/exercises/trinary/src/trinary.app.src
2643
- - tracks/erlang/exercises/trinary/test/trinary_tests.erl
2644
2653
  - tracks/erlang/exercises/word-count/include/exercism.hrl
2645
2654
  - tracks/erlang/exercises/word-count/rebar.config
2646
2655
  - tracks/erlang/exercises/word-count/src/example.erl
@@ -2788,7 +2797,6 @@ files:
2788
2797
  - tracks/fsharp/exercises/hangman/Example.fs
2789
2798
  - tracks/fsharp/exercises/hangman/HangmanTest.fs
2790
2799
  - tracks/fsharp/exercises/hello-world/Example.fs
2791
- - tracks/fsharp/exercises/hello-world/HINTS.md
2792
2800
  - tracks/fsharp/exercises/hello-world/HelloWorldTest.fs
2793
2801
  - tracks/fsharp/exercises/house/Example.fs
2794
2802
  - tracks/fsharp/exercises/house/HINTS.md
@@ -3435,6 +3443,13 @@ files:
3435
3443
  - tracks/haskell/exercises/hamming/src/Hamming.hs
3436
3444
  - tracks/haskell/exercises/hamming/stack.yaml
3437
3445
  - tracks/haskell/exercises/hamming/test/Tests.hs
3446
+ - tracks/haskell/exercises/hello-world/HINTS.md
3447
+ - tracks/haskell/exercises/hello-world/examples/success-standard/package.yaml
3448
+ - tracks/haskell/exercises/hello-world/examples/success-standard/src/HelloWorld.hs
3449
+ - tracks/haskell/exercises/hello-world/package.yaml
3450
+ - tracks/haskell/exercises/hello-world/src/HelloWorld.hs
3451
+ - tracks/haskell/exercises/hello-world/stack.yaml
3452
+ - tracks/haskell/exercises/hello-world/test/Tests.hs
3438
3453
  - tracks/haskell/exercises/hexadecimal/examples/success-standard/package.yaml
3439
3454
  - tracks/haskell/exercises/hexadecimal/examples/success-standard/src/Hexadecimal.hs
3440
3455
  - tracks/haskell/exercises/hexadecimal/package.yaml
@@ -3812,10 +3827,16 @@ files:
3812
3827
  - tracks/idris/exercises/hello-world/Makefile
3813
3828
  - tracks/idris/exercises/hello-world/src/Test/HelloWorld.idr
3814
3829
  - tracks/idris/exercises/hello-world/src/example.idr
3830
+ - tracks/idris/exercises/leap/Leap.ipkg
3831
+ - tracks/idris/exercises/leap/Makefile
3832
+ - tracks/idris/exercises/leap/src/Leap.idr
3833
+ - tracks/idris/exercises/leap/src/Test/Leap.idr
3834
+ - tracks/idris/exercises/leap/src/example.idr
3815
3835
  - tracks/idris/img/.keep
3816
3836
  - tracks/idris/img/icon.png
3817
3837
  - tracks/java/.git
3818
3838
  - tracks/java/.gitignore
3839
+ - tracks/java/.keep
3819
3840
  - tracks/java/.travis.yml
3820
3841
  - tracks/java/LICENSE
3821
3842
  - tracks/java/README.md
@@ -3956,6 +3977,10 @@ files:
3956
3977
  - tracks/java/exercises/linked-list/src/example/java/DoublyLinkedList.java
3957
3978
  - tracks/java/exercises/linked-list/src/main/java/.keep
3958
3979
  - tracks/java/exercises/linked-list/src/test/java/DoublyLinkedListTest.java
3980
+ - tracks/java/exercises/list-ops/build.gradle
3981
+ - tracks/java/exercises/list-ops/src/example/java/ListOps.java
3982
+ - tracks/java/exercises/list-ops/src/main/java/.keep
3983
+ - tracks/java/exercises/list-ops/src/test/java/ListOpsTest.java
3959
3984
  - tracks/java/exercises/luhn/build.gradle
3960
3985
  - tracks/java/exercises/luhn/src/example/java/LuhnValidator.java
3961
3986
  - tracks/java/exercises/luhn/src/main/java/.keep
@@ -4934,6 +4959,7 @@ files:
4934
4959
  - tracks/lua/docs/LEARNING.md
4935
4960
  - tracks/lua/docs/RESOURCES.md
4936
4961
  - tracks/lua/docs/TESTS.md
4962
+ - tracks/lua/exercises/TRACK_HINTS.md
4937
4963
  - tracks/lua/exercises/accumulate/accumulate_spec.lua
4938
4964
  - tracks/lua/exercises/accumulate/example.lua
4939
4965
  - tracks/lua/exercises/acronym/acronym_spec.lua
@@ -4994,6 +5020,7 @@ files:
4994
5020
  - tracks/lua/exercises/hamming/example.lua
4995
5021
  - tracks/lua/exercises/hamming/hamming_spec.lua
4996
5022
  - tracks/lua/exercises/hello-world/example.lua
5023
+ - tracks/lua/exercises/hello-world/hello-world.lua
4997
5024
  - tracks/lua/exercises/hello-world/hello-world_spec.lua
4998
5025
  - tracks/lua/exercises/house/example.lua
4999
5026
  - tracks/lua/exercises/house/house_spec.lua
@@ -5527,6 +5554,7 @@ files:
5527
5554
  - tracks/ocaml/tools/test-generator/templates/luhn/template.ml
5528
5555
  - tracks/ocaml/tools/test-generator/templates/minesweeper/template.ml
5529
5556
  - tracks/ocaml/tools/test-generator/templates/pangram/template.ml
5557
+ - tracks/ocaml/tools/test-generator/templates/phone-number/template.ml
5530
5558
  - tracks/ocaml/tools/test-generator/templates/raindrops/template.ml
5531
5559
  - tracks/ocaml/tools/test-generator/templates/run-length-encoding/template.ml
5532
5560
  - tracks/ocaml/tools/test-generator/templates/say/template.ml
@@ -6828,6 +6856,7 @@ files:
6828
6856
  - tracks/rust/exercises/hello-world/Cargo.toml
6829
6857
  - tracks/rust/exercises/hello-world/GETTING_STARTED.md
6830
6858
  - tracks/rust/exercises/hello-world/example.rs
6859
+ - tracks/rust/exercises/hello-world/src/lib.rs
6831
6860
  - tracks/rust/exercises/hello-world/tests/hello-world.rs
6832
6861
  - tracks/rust/exercises/hexadecimal/.gitignore
6833
6862
  - tracks/rust/exercises/hexadecimal/Cargo.lock
@@ -7233,6 +7262,10 @@ files:
7233
7262
  - tracks/scala/exercises/queen-attack/src/main/scala/.keep
7234
7263
  - tracks/scala/exercises/queen-attack/src/main/scala/Queens.scala
7235
7264
  - tracks/scala/exercises/queen-attack/src/test/scala/QueensTest.scala
7265
+ - tracks/scala/exercises/rail-fence-cipher/build.sbt
7266
+ - tracks/scala/exercises/rail-fence-cipher/example.scala
7267
+ - tracks/scala/exercises/rail-fence-cipher/src/main/scala/RailFenceCipher.scala
7268
+ - tracks/scala/exercises/rail-fence-cipher/src/test/scala/RailFenceCipherTest.scala
7236
7269
  - tracks/scala/exercises/raindrops/build.sbt
7237
7270
  - tracks/scala/exercises/raindrops/example.scala
7238
7271
  - tracks/scala/exercises/raindrops/src/main/scala/.keep
@@ -7345,6 +7378,7 @@ files:
7345
7378
  - tracks/scala/testgen/src/main/scala/BracketPushTestGenerator.scala
7346
7379
  - tracks/scala/testgen/src/main/scala/CustomSetTestGenerator.scala
7347
7380
  - tracks/scala/testgen/src/main/scala/PangramsTestGenerator.scala
7381
+ - tracks/scala/testgen/src/main/scala/RailFenceCipherTestGenerator.scala
7348
7382
  - tracks/scala/testgen/src/main/scala/TestBuilder.scala
7349
7383
  - tracks/scheme/.git
7350
7384
  - tracks/scheme/.gitignore
@@ -7928,18 +7962,103 @@ files:
7928
7962
  - tracks/typescript/.git
7929
7963
  - tracks/typescript/.gitignore
7930
7964
  - tracks/typescript/.travis.yml
7965
+ - tracks/typescript/Dangerfile
7931
7966
  - tracks/typescript/LICENSE
7967
+ - tracks/typescript/Makefile
7932
7968
  - tracks/typescript/README.md
7933
7969
  - tracks/typescript/SETUP.md
7934
7970
  - tracks/typescript/bin/fetch-configlet
7971
+ - tracks/typescript/common/package.json
7972
+ - tracks/typescript/common/tsconfig.json
7973
+ - tracks/typescript/common/tslint.json
7974
+ - tracks/typescript/common/yarn.lock
7935
7975
  - tracks/typescript/config.json
7936
7976
  - tracks/typescript/docs/ABOUT.md
7937
7977
  - tracks/typescript/docs/INSTALLATION.md
7938
7978
  - tracks/typescript/docs/LEARNING.md
7939
7979
  - tracks/typescript/docs/RESOURCES.md
7940
7980
  - tracks/typescript/docs/TESTS.md
7941
- - tracks/typescript/exercises/.keep
7981
+ - tracks/typescript/exercises/anagram/anagram.example.ts
7982
+ - tracks/typescript/exercises/anagram/anagram.test.ts
7983
+ - tracks/typescript/exercises/anagram/package.json
7984
+ - tracks/typescript/exercises/anagram/tsconfig.json
7985
+ - tracks/typescript/exercises/anagram/tslint.json
7986
+ - tracks/typescript/exercises/anagram/yarn.lock
7987
+ - tracks/typescript/exercises/beer-song/beer-song.example.ts
7988
+ - tracks/typescript/exercises/beer-song/beer-song.test.ts
7989
+ - tracks/typescript/exercises/beer-song/package.json
7990
+ - tracks/typescript/exercises/beer-song/tsconfig.json
7991
+ - tracks/typescript/exercises/beer-song/tslint.json
7992
+ - tracks/typescript/exercises/beer-song/yarn.lock
7993
+ - tracks/typescript/exercises/bob/bob.example.ts
7994
+ - tracks/typescript/exercises/bob/bob.test.ts
7995
+ - tracks/typescript/exercises/bob/package.json
7996
+ - tracks/typescript/exercises/bob/tsconfig.json
7997
+ - tracks/typescript/exercises/bob/tslint.json
7998
+ - tracks/typescript/exercises/bob/yarn.lock
7999
+ - tracks/typescript/exercises/gigasecond/gigasecond.example.ts
8000
+ - tracks/typescript/exercises/gigasecond/gigasecond.test.ts
8001
+ - tracks/typescript/exercises/gigasecond/package.json
8002
+ - tracks/typescript/exercises/gigasecond/tsconfig.json
8003
+ - tracks/typescript/exercises/gigasecond/tslint.json
8004
+ - tracks/typescript/exercises/gigasecond/yarn.lock
8005
+ - tracks/typescript/exercises/hamming/hamming.example.ts
8006
+ - tracks/typescript/exercises/hamming/hamming.test.ts
8007
+ - tracks/typescript/exercises/hamming/package.json
8008
+ - tracks/typescript/exercises/hamming/tsconfig.json
8009
+ - tracks/typescript/exercises/hamming/tslint.json
8010
+ - tracks/typescript/exercises/hamming/yarn.lock
8011
+ - tracks/typescript/exercises/hello-world/hello-world.example.ts
8012
+ - tracks/typescript/exercises/hello-world/hello-world.test.ts
8013
+ - tracks/typescript/exercises/hello-world/package.json
8014
+ - tracks/typescript/exercises/hello-world/tsconfig.json
8015
+ - tracks/typescript/exercises/hello-world/tslint.json
8016
+ - tracks/typescript/exercises/hello-world/yarn.lock
8017
+ - tracks/typescript/exercises/leap/leap.example.ts
8018
+ - tracks/typescript/exercises/leap/leap.test.ts
8019
+ - tracks/typescript/exercises/leap/package.json
8020
+ - tracks/typescript/exercises/leap/tsconfig.json
8021
+ - tracks/typescript/exercises/leap/tslint.json
8022
+ - tracks/typescript/exercises/leap/yarn.lock
8023
+ - tracks/typescript/exercises/pangram/package.json
8024
+ - tracks/typescript/exercises/pangram/pangram.example.ts
8025
+ - tracks/typescript/exercises/pangram/pangram.test.ts
8026
+ - tracks/typescript/exercises/pangram/tsconfig.json
8027
+ - tracks/typescript/exercises/pangram/tslint.json
8028
+ - tracks/typescript/exercises/pangram/yarn.lock
8029
+ - tracks/typescript/exercises/phone-number/package.json
8030
+ - tracks/typescript/exercises/phone-number/phone-number.example.ts
8031
+ - tracks/typescript/exercises/phone-number/phone-number.test.ts
8032
+ - tracks/typescript/exercises/phone-number/tsconfig.json
8033
+ - tracks/typescript/exercises/phone-number/tslint.json
8034
+ - tracks/typescript/exercises/phone-number/yarn.lock
8035
+ - tracks/typescript/exercises/rna-transcription/package.json
8036
+ - tracks/typescript/exercises/rna-transcription/rna-transcription.example.ts
8037
+ - tracks/typescript/exercises/rna-transcription/rna-transcription.test.ts
8038
+ - tracks/typescript/exercises/rna-transcription/tsconfig.json
8039
+ - tracks/typescript/exercises/rna-transcription/tslint.json
8040
+ - tracks/typescript/exercises/rna-transcription/yarn.lock
8041
+ - tracks/typescript/exercises/say/package.json
8042
+ - tracks/typescript/exercises/say/say.example.ts
8043
+ - tracks/typescript/exercises/say/say.test.ts
8044
+ - tracks/typescript/exercises/say/tsconfig.json
8045
+ - tracks/typescript/exercises/say/tslint.json
8046
+ - tracks/typescript/exercises/say/yarn.lock
8047
+ - tracks/typescript/exercises/word-count/package.json
8048
+ - tracks/typescript/exercises/word-count/tsconfig.json
8049
+ - tracks/typescript/exercises/word-count/tslint.json
8050
+ - tracks/typescript/exercises/word-count/word-count.example.ts
8051
+ - tracks/typescript/exercises/word-count/word-count.test.ts
8052
+ - tracks/typescript/exercises/word-count/yarn.lock
8053
+ - tracks/typescript/exercises/wordy/package.json
8054
+ - tracks/typescript/exercises/wordy/tsconfig.json
8055
+ - tracks/typescript/exercises/wordy/tslint.json
8056
+ - tracks/typescript/exercises/wordy/wordy.example.ts
8057
+ - tracks/typescript/exercises/wordy/wordy.test.ts
8058
+ - tracks/typescript/exercises/wordy/yarn.lock
7942
8059
  - tracks/typescript/img/.keep
8060
+ - tracks/typescript/img/icon.png
8061
+ - tracks/typescript/img/icon.svg
7943
8062
  - tracks/vbnet/.git
7944
8063
  - tracks/vbnet/.gitignore
7945
8064
  - tracks/vbnet/.travis.yml
@@ -1,20 +0,0 @@
1
- -module(example). % binary is a "sticky module" so we have to use another name.
2
- -export( [to_decimal/1, test_version/0] ).
3
-
4
- to_decimal( String ) ->
5
- try
6
- {_N, Result} = lists:foldr( fun to_decimal/2, {0, 0}, String ),
7
- Result
8
-
9
- catch
10
- _:_ -> 0
11
-
12
- end.
13
-
14
- test_version() ->
15
- 1.
16
-
17
-
18
-
19
- to_decimal( $0, {N, Acc} ) -> {N + 1, Acc};
20
- to_decimal( $1, {N, Acc} ) -> {N + 1, Acc + erlang:trunc(math:pow(2, N))}.
@@ -1,26 +0,0 @@
1
- -module(binary_string_tests).
2
-
3
- -define(TESTED_MODULE, (sut(binary_string))).
4
- -define(TEST_VERSION, 1).
5
- -include("exercism.hrl").
6
-
7
-
8
- one_test() -> check( "1" ).
9
-
10
- two_test() -> check( "10" ).
11
-
12
- three_test() -> check( "11" ).
13
-
14
- four_test() -> check( "100" ).
15
-
16
- nine_test() -> check( "1001" ).
17
-
18
- twenty_six_test() -> check( "11010" ).
19
-
20
- large_test() -> check( "10001101000" ).
21
-
22
- carrot_test() ->
23
- ?assert(0 =:= ?TESTED_MODULE:to_decimal( "carrot" )).
24
-
25
- check(String) ->
26
- ?assert(?TESTED_MODULE:to_decimal(String) =:= erlang:list_to_integer(String, 2)).
@@ -1,10 +0,0 @@
1
- SRC=$(wildcard *.erl)
2
-
3
- compile: $(SRC)
4
- @erlc -pa . $(SRC)
5
-
6
- clean:
7
- @$(RM) -r *.beam
8
-
9
- test: clean compile
10
- @erl -pa . -eval 'eunit:test(trinary_tests), init:stop().'
@@ -1,66 +0,0 @@
1
- -module(example).
2
- -export([to_decimal/1, test_version/0]).
3
- -define(BASE, 3).
4
-
5
- %%
6
- %% trinary/ternary (base 3) to decimal (base 10)
7
- %%
8
-
9
- to_decimal(StringNumeric) ->
10
- % numeric character list indexed by position
11
- IndexedList = list_index(numeric_or(StringNumeric, "")),
12
-
13
- % tokenize string into a list of numeric characters
14
- Tokens = lists:foldl(fun accumulate/2, [], IndexedList),
15
-
16
- % integer sum
17
- round(lists:sum(Tokens)).
18
-
19
- test_version() ->
20
- 1.
21
-
22
- %%
23
- %% if string is all numeric, return it; otherwise, return given default
24
- %%
25
-
26
- numeric_or(StringNumeric, Or) -> case re:run(StringNumeric, "^[0-9]+$") of
27
- {match, _} -> StringNumeric;
28
- nomatch -> Or
29
- end.
30
-
31
- %%
32
- %% builds a numeric character list indexed by position (i.e. [{Num, Index}, ...])
33
- %%
34
-
35
- list_index(StringNumeric) ->
36
- {Tuples, _} = lists:mapfoldr(fun index_accumulator/2, 0, StringNumeric), Tuples.
37
-
38
- %%
39
- %% Iterator to build tuples like `{Item, Index}` which correspond
40
- %% to each item and its position in a list.
41
- %%
42
- %% element 1: numeric character
43
- %% element 2: posision in the list (zero based) -- increase by one for each iteration
44
- %%
45
-
46
- index_accumulator(Item, Index) -> {{Item, Index}, Index + 1}.
47
-
48
- %%
49
- %% accumulate list values
50
- %%
51
-
52
- accumulate(T, Sum) ->
53
- % destructure tuple into local vars
54
- {Digit, Index} = T,
55
-
56
- % cast binary into integer
57
- Integer = binary_to_integer(<<Digit>>),
58
-
59
- % append list to complete accumulation
60
- Sum ++ [trinary(Integer, Index)].
61
-
62
- %%
63
- %% trinary algorithm (apply to each numeric character)
64
- %%
65
-
66
- trinary(Integer, Index) -> Integer * math:pow(?BASE, Index).
@@ -1,36 +0,0 @@
1
- -module(trinary_tests).
2
-
3
- -define(TESTED_MODULE, (sut(trinary))).
4
- -define(TEST_VERSION, 1).
5
- -include("exercism.hrl").
6
-
7
-
8
- trinary_1_is_decimal_1_test() ->
9
- ?assertEqual(1, ?TESTED_MODULE:to_decimal("1")).
10
-
11
- trinary_2_is_decimal_2_test() ->
12
- ?assertEqual(2, ?TESTED_MODULE:to_decimal("2")).
13
-
14
- trinary_10_is_decimal_3_test() ->
15
- ?assertEqual(3, ?TESTED_MODULE:to_decimal("10")).
16
-
17
- trinary_11_is_decimal_4_test() ->
18
- ?assertEqual(4, ?TESTED_MODULE:to_decimal("11")).
19
-
20
- trinary_100_is_decimal_9_test() ->
21
- ?assertEqual(9, ?TESTED_MODULE:to_decimal("100")).
22
-
23
- trinary_112_is_decimal_14_test() ->
24
- ?assertEqual(14, ?TESTED_MODULE:to_decimal("112")).
25
-
26
- trinary_222_is_decimal_26_test() ->
27
- ?assertEqual(26, ?TESTED_MODULE:to_decimal("222")).
28
-
29
- trinary_1120_is_decimal_42_test() ->
30
- ?assertEqual(42, ?TESTED_MODULE:to_decimal("1120")).
31
-
32
- trinary_1122000120_is_decimal_32091_test() ->
33
- ?assertEqual(32091, ?TESTED_MODULE:to_decimal("1122000120")).
34
-
35
- invalid_trinary_is_decimal_0_test() ->
36
- ?assertEqual(0, ?TESTED_MODULE:to_decimal("carrot")).