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
@@ -0,0 +1,36 @@
1
+
2
+ class Beer {
3
+ private static pluralize(input: number): string {
4
+ if (input === 0) {return "o more bottles "}
5
+ return (input === 1) ? "1 bottle " : `${input} bottles `
6
+ }
7
+
8
+ static verse(input: number): string {
9
+ const wall = "of beer on the wall"
10
+ if (input === 0) {
11
+ return `N${Beer.pluralize(0)}${wall}, n${Beer.pluralize(0)}of beer.
12
+ Go to the store and buy some more, ${Beer.pluralize(99)}${wall}.
13
+ `
14
+ }
15
+ if (input === 1) {
16
+ return `${Beer.pluralize(1)}${wall}, ${Beer.pluralize(1)}of beer.
17
+ Take it down and pass it around, n${Beer.pluralize(0)}${wall}.
18
+ `
19
+ }
20
+ return `${Beer.pluralize(input)}${wall}, ${Beer.pluralize(input)}of beer.
21
+ Take one down and pass it around, ${Beer.pluralize(input - 1)}${wall}.
22
+ `
23
+ }
24
+ static sing(end: number = 99, start: number = 0): string {
25
+ let temp = ``
26
+ for (let i: number = end; i >= start ; i -= 1) {
27
+ temp += Beer.verse(i)
28
+ if (i !== start ) {
29
+ temp += "\n"
30
+ }
31
+ }
32
+ return temp
33
+ }
34
+ }
35
+
36
+ export default Beer
@@ -0,0 +1,360 @@
1
+ import Beer from './beer-song'
2
+
3
+ describe('Beer', () => {
4
+
5
+ it('prints an arbitrary verse', () => {
6
+ const expected = `8 bottles of beer on the wall, 8 bottles of beer.
7
+ Take one down and pass it around, 7 bottles of beer on the wall.
8
+ `
9
+
10
+ expect(Beer.verse(8)).toEqual(expected)
11
+ })
12
+
13
+ it('handles 1 bottle', () => {
14
+ const expected = `1 bottle of beer on the wall, 1 bottle of beer.
15
+ Take it down and pass it around, no more bottles of beer on the wall.
16
+ `
17
+ expect(Beer.verse(1)).toEqual(expected)
18
+ })
19
+
20
+ it('handles 0 bottles', () => {
21
+ const expected = `No more bottles of beer on the wall, no more bottles of beer.
22
+ Go to the store and buy some more, 99 bottles of beer on the wall.
23
+ `
24
+ expect(Beer.verse(0)).toEqual(expected)
25
+ })
26
+
27
+ it('sings several verses', () => {
28
+ const expected = `8 bottles of beer on the wall, 8 bottles of beer.
29
+ Take one down and pass it around, 7 bottles of beer on the wall.
30
+
31
+ 7 bottles of beer on the wall, 7 bottles of beer.
32
+ Take one down and pass it around, 6 bottles of beer on the wall.
33
+
34
+ 6 bottles of beer on the wall, 6 bottles of beer.
35
+ Take one down and pass it around, 5 bottles of beer on the wall.
36
+ `
37
+ expect(Beer.sing(8, 6)).toEqual(expected)
38
+ })
39
+
40
+ it('sings the rest of the verses', () => {
41
+ const expected = `3 bottles of beer on the wall, 3 bottles of beer.
42
+ Take one down and pass it around, 2 bottles of beer on the wall.
43
+
44
+ 2 bottles of beer on the wall, 2 bottles of beer.
45
+ Take one down and pass it around, 1 bottle of beer on the wall.
46
+
47
+ 1 bottle of beer on the wall, 1 bottle of beer.
48
+ Take it down and pass it around, no more bottles of beer on the wall.
49
+
50
+ No more bottles of beer on the wall, no more bottles of beer.
51
+ Go to the store and buy some more, 99 bottles of beer on the wall.
52
+ `
53
+ expect(Beer.sing(3)).toEqual(expected)
54
+ })
55
+
56
+ it('sings all the verses', () => {
57
+ const song = Beer.sing()
58
+ expect(song).toEqual(`99 bottles of beer on the wall, 99 bottles of beer.
59
+ Take one down and pass it around, 98 bottles of beer on the wall.
60
+
61
+ 98 bottles of beer on the wall, 98 bottles of beer.
62
+ Take one down and pass it around, 97 bottles of beer on the wall.
63
+
64
+ 97 bottles of beer on the wall, 97 bottles of beer.
65
+ Take one down and pass it around, 96 bottles of beer on the wall.
66
+
67
+ 96 bottles of beer on the wall, 96 bottles of beer.
68
+ Take one down and pass it around, 95 bottles of beer on the wall.
69
+
70
+ 95 bottles of beer on the wall, 95 bottles of beer.
71
+ Take one down and pass it around, 94 bottles of beer on the wall.
72
+
73
+ 94 bottles of beer on the wall, 94 bottles of beer.
74
+ Take one down and pass it around, 93 bottles of beer on the wall.
75
+
76
+ 93 bottles of beer on the wall, 93 bottles of beer.
77
+ Take one down and pass it around, 92 bottles of beer on the wall.
78
+
79
+ 92 bottles of beer on the wall, 92 bottles of beer.
80
+ Take one down and pass it around, 91 bottles of beer on the wall.
81
+
82
+ 91 bottles of beer on the wall, 91 bottles of beer.
83
+ Take one down and pass it around, 90 bottles of beer on the wall.
84
+
85
+ 90 bottles of beer on the wall, 90 bottles of beer.
86
+ Take one down and pass it around, 89 bottles of beer on the wall.
87
+
88
+ 89 bottles of beer on the wall, 89 bottles of beer.
89
+ Take one down and pass it around, 88 bottles of beer on the wall.
90
+
91
+ 88 bottles of beer on the wall, 88 bottles of beer.
92
+ Take one down and pass it around, 87 bottles of beer on the wall.
93
+
94
+ 87 bottles of beer on the wall, 87 bottles of beer.
95
+ Take one down and pass it around, 86 bottles of beer on the wall.
96
+
97
+ 86 bottles of beer on the wall, 86 bottles of beer.
98
+ Take one down and pass it around, 85 bottles of beer on the wall.
99
+
100
+ 85 bottles of beer on the wall, 85 bottles of beer.
101
+ Take one down and pass it around, 84 bottles of beer on the wall.
102
+
103
+ 84 bottles of beer on the wall, 84 bottles of beer.
104
+ Take one down and pass it around, 83 bottles of beer on the wall.
105
+
106
+ 83 bottles of beer on the wall, 83 bottles of beer.
107
+ Take one down and pass it around, 82 bottles of beer on the wall.
108
+
109
+ 82 bottles of beer on the wall, 82 bottles of beer.
110
+ Take one down and pass it around, 81 bottles of beer on the wall.
111
+
112
+ 81 bottles of beer on the wall, 81 bottles of beer.
113
+ Take one down and pass it around, 80 bottles of beer on the wall.
114
+
115
+ 80 bottles of beer on the wall, 80 bottles of beer.
116
+ Take one down and pass it around, 79 bottles of beer on the wall.
117
+
118
+ 79 bottles of beer on the wall, 79 bottles of beer.
119
+ Take one down and pass it around, 78 bottles of beer on the wall.
120
+
121
+ 78 bottles of beer on the wall, 78 bottles of beer.
122
+ Take one down and pass it around, 77 bottles of beer on the wall.
123
+
124
+ 77 bottles of beer on the wall, 77 bottles of beer.
125
+ Take one down and pass it around, 76 bottles of beer on the wall.
126
+
127
+ 76 bottles of beer on the wall, 76 bottles of beer.
128
+ Take one down and pass it around, 75 bottles of beer on the wall.
129
+
130
+ 75 bottles of beer on the wall, 75 bottles of beer.
131
+ Take one down and pass it around, 74 bottles of beer on the wall.
132
+
133
+ 74 bottles of beer on the wall, 74 bottles of beer.
134
+ Take one down and pass it around, 73 bottles of beer on the wall.
135
+
136
+ 73 bottles of beer on the wall, 73 bottles of beer.
137
+ Take one down and pass it around, 72 bottles of beer on the wall.
138
+
139
+ 72 bottles of beer on the wall, 72 bottles of beer.
140
+ Take one down and pass it around, 71 bottles of beer on the wall.
141
+
142
+ 71 bottles of beer on the wall, 71 bottles of beer.
143
+ Take one down and pass it around, 70 bottles of beer on the wall.
144
+
145
+ 70 bottles of beer on the wall, 70 bottles of beer.
146
+ Take one down and pass it around, 69 bottles of beer on the wall.
147
+
148
+ 69 bottles of beer on the wall, 69 bottles of beer.
149
+ Take one down and pass it around, 68 bottles of beer on the wall.
150
+
151
+ 68 bottles of beer on the wall, 68 bottles of beer.
152
+ Take one down and pass it around, 67 bottles of beer on the wall.
153
+
154
+ 67 bottles of beer on the wall, 67 bottles of beer.
155
+ Take one down and pass it around, 66 bottles of beer on the wall.
156
+
157
+ 66 bottles of beer on the wall, 66 bottles of beer.
158
+ Take one down and pass it around, 65 bottles of beer on the wall.
159
+
160
+ 65 bottles of beer on the wall, 65 bottles of beer.
161
+ Take one down and pass it around, 64 bottles of beer on the wall.
162
+
163
+ 64 bottles of beer on the wall, 64 bottles of beer.
164
+ Take one down and pass it around, 63 bottles of beer on the wall.
165
+
166
+ 63 bottles of beer on the wall, 63 bottles of beer.
167
+ Take one down and pass it around, 62 bottles of beer on the wall.
168
+
169
+ 62 bottles of beer on the wall, 62 bottles of beer.
170
+ Take one down and pass it around, 61 bottles of beer on the wall.
171
+
172
+ 61 bottles of beer on the wall, 61 bottles of beer.
173
+ Take one down and pass it around, 60 bottles of beer on the wall.
174
+
175
+ 60 bottles of beer on the wall, 60 bottles of beer.
176
+ Take one down and pass it around, 59 bottles of beer on the wall.
177
+
178
+ 59 bottles of beer on the wall, 59 bottles of beer.
179
+ Take one down and pass it around, 58 bottles of beer on the wall.
180
+
181
+ 58 bottles of beer on the wall, 58 bottles of beer.
182
+ Take one down and pass it around, 57 bottles of beer on the wall.
183
+
184
+ 57 bottles of beer on the wall, 57 bottles of beer.
185
+ Take one down and pass it around, 56 bottles of beer on the wall.
186
+
187
+ 56 bottles of beer on the wall, 56 bottles of beer.
188
+ Take one down and pass it around, 55 bottles of beer on the wall.
189
+
190
+ 55 bottles of beer on the wall, 55 bottles of beer.
191
+ Take one down and pass it around, 54 bottles of beer on the wall.
192
+
193
+ 54 bottles of beer on the wall, 54 bottles of beer.
194
+ Take one down and pass it around, 53 bottles of beer on the wall.
195
+
196
+ 53 bottles of beer on the wall, 53 bottles of beer.
197
+ Take one down and pass it around, 52 bottles of beer on the wall.
198
+
199
+ 52 bottles of beer on the wall, 52 bottles of beer.
200
+ Take one down and pass it around, 51 bottles of beer on the wall.
201
+
202
+ 51 bottles of beer on the wall, 51 bottles of beer.
203
+ Take one down and pass it around, 50 bottles of beer on the wall.
204
+
205
+ 50 bottles of beer on the wall, 50 bottles of beer.
206
+ Take one down and pass it around, 49 bottles of beer on the wall.
207
+
208
+ 49 bottles of beer on the wall, 49 bottles of beer.
209
+ Take one down and pass it around, 48 bottles of beer on the wall.
210
+
211
+ 48 bottles of beer on the wall, 48 bottles of beer.
212
+ Take one down and pass it around, 47 bottles of beer on the wall.
213
+
214
+ 47 bottles of beer on the wall, 47 bottles of beer.
215
+ Take one down and pass it around, 46 bottles of beer on the wall.
216
+
217
+ 46 bottles of beer on the wall, 46 bottles of beer.
218
+ Take one down and pass it around, 45 bottles of beer on the wall.
219
+
220
+ 45 bottles of beer on the wall, 45 bottles of beer.
221
+ Take one down and pass it around, 44 bottles of beer on the wall.
222
+
223
+ 44 bottles of beer on the wall, 44 bottles of beer.
224
+ Take one down and pass it around, 43 bottles of beer on the wall.
225
+
226
+ 43 bottles of beer on the wall, 43 bottles of beer.
227
+ Take one down and pass it around, 42 bottles of beer on the wall.
228
+
229
+ 42 bottles of beer on the wall, 42 bottles of beer.
230
+ Take one down and pass it around, 41 bottles of beer on the wall.
231
+
232
+ 41 bottles of beer on the wall, 41 bottles of beer.
233
+ Take one down and pass it around, 40 bottles of beer on the wall.
234
+
235
+ 40 bottles of beer on the wall, 40 bottles of beer.
236
+ Take one down and pass it around, 39 bottles of beer on the wall.
237
+
238
+ 39 bottles of beer on the wall, 39 bottles of beer.
239
+ Take one down and pass it around, 38 bottles of beer on the wall.
240
+
241
+ 38 bottles of beer on the wall, 38 bottles of beer.
242
+ Take one down and pass it around, 37 bottles of beer on the wall.
243
+
244
+ 37 bottles of beer on the wall, 37 bottles of beer.
245
+ Take one down and pass it around, 36 bottles of beer on the wall.
246
+
247
+ 36 bottles of beer on the wall, 36 bottles of beer.
248
+ Take one down and pass it around, 35 bottles of beer on the wall.
249
+
250
+ 35 bottles of beer on the wall, 35 bottles of beer.
251
+ Take one down and pass it around, 34 bottles of beer on the wall.
252
+
253
+ 34 bottles of beer on the wall, 34 bottles of beer.
254
+ Take one down and pass it around, 33 bottles of beer on the wall.
255
+
256
+ 33 bottles of beer on the wall, 33 bottles of beer.
257
+ Take one down and pass it around, 32 bottles of beer on the wall.
258
+
259
+ 32 bottles of beer on the wall, 32 bottles of beer.
260
+ Take one down and pass it around, 31 bottles of beer on the wall.
261
+
262
+ 31 bottles of beer on the wall, 31 bottles of beer.
263
+ Take one down and pass it around, 30 bottles of beer on the wall.
264
+
265
+ 30 bottles of beer on the wall, 30 bottles of beer.
266
+ Take one down and pass it around, 29 bottles of beer on the wall.
267
+
268
+ 29 bottles of beer on the wall, 29 bottles of beer.
269
+ Take one down and pass it around, 28 bottles of beer on the wall.
270
+
271
+ 28 bottles of beer on the wall, 28 bottles of beer.
272
+ Take one down and pass it around, 27 bottles of beer on the wall.
273
+
274
+ 27 bottles of beer on the wall, 27 bottles of beer.
275
+ Take one down and pass it around, 26 bottles of beer on the wall.
276
+
277
+ 26 bottles of beer on the wall, 26 bottles of beer.
278
+ Take one down and pass it around, 25 bottles of beer on the wall.
279
+
280
+ 25 bottles of beer on the wall, 25 bottles of beer.
281
+ Take one down and pass it around, 24 bottles of beer on the wall.
282
+
283
+ 24 bottles of beer on the wall, 24 bottles of beer.
284
+ Take one down and pass it around, 23 bottles of beer on the wall.
285
+
286
+ 23 bottles of beer on the wall, 23 bottles of beer.
287
+ Take one down and pass it around, 22 bottles of beer on the wall.
288
+
289
+ 22 bottles of beer on the wall, 22 bottles of beer.
290
+ Take one down and pass it around, 21 bottles of beer on the wall.
291
+
292
+ 21 bottles of beer on the wall, 21 bottles of beer.
293
+ Take one down and pass it around, 20 bottles of beer on the wall.
294
+
295
+ 20 bottles of beer on the wall, 20 bottles of beer.
296
+ Take one down and pass it around, 19 bottles of beer on the wall.
297
+
298
+ 19 bottles of beer on the wall, 19 bottles of beer.
299
+ Take one down and pass it around, 18 bottles of beer on the wall.
300
+
301
+ 18 bottles of beer on the wall, 18 bottles of beer.
302
+ Take one down and pass it around, 17 bottles of beer on the wall.
303
+
304
+ 17 bottles of beer on the wall, 17 bottles of beer.
305
+ Take one down and pass it around, 16 bottles of beer on the wall.
306
+
307
+ 16 bottles of beer on the wall, 16 bottles of beer.
308
+ Take one down and pass it around, 15 bottles of beer on the wall.
309
+
310
+ 15 bottles of beer on the wall, 15 bottles of beer.
311
+ Take one down and pass it around, 14 bottles of beer on the wall.
312
+
313
+ 14 bottles of beer on the wall, 14 bottles of beer.
314
+ Take one down and pass it around, 13 bottles of beer on the wall.
315
+
316
+ 13 bottles of beer on the wall, 13 bottles of beer.
317
+ Take one down and pass it around, 12 bottles of beer on the wall.
318
+
319
+ 12 bottles of beer on the wall, 12 bottles of beer.
320
+ Take one down and pass it around, 11 bottles of beer on the wall.
321
+
322
+ 11 bottles of beer on the wall, 11 bottles of beer.
323
+ Take one down and pass it around, 10 bottles of beer on the wall.
324
+
325
+ 10 bottles of beer on the wall, 10 bottles of beer.
326
+ Take one down and pass it around, 9 bottles of beer on the wall.
327
+
328
+ 9 bottles of beer on the wall, 9 bottles of beer.
329
+ Take one down and pass it around, 8 bottles of beer on the wall.
330
+
331
+ 8 bottles of beer on the wall, 8 bottles of beer.
332
+ Take one down and pass it around, 7 bottles of beer on the wall.
333
+
334
+ 7 bottles of beer on the wall, 7 bottles of beer.
335
+ Take one down and pass it around, 6 bottles of beer on the wall.
336
+
337
+ 6 bottles of beer on the wall, 6 bottles of beer.
338
+ Take one down and pass it around, 5 bottles of beer on the wall.
339
+
340
+ 5 bottles of beer on the wall, 5 bottles of beer.
341
+ Take one down and pass it around, 4 bottles of beer on the wall.
342
+
343
+ 4 bottles of beer on the wall, 4 bottles of beer.
344
+ Take one down and pass it around, 3 bottles of beer on the wall.
345
+
346
+ 3 bottles of beer on the wall, 3 bottles of beer.
347
+ Take one down and pass it around, 2 bottles of beer on the wall.
348
+
349
+ 2 bottles of beer on the wall, 2 bottles of beer.
350
+ Take one down and pass it around, 1 bottle of beer on the wall.
351
+
352
+ 1 bottle of beer on the wall, 1 bottle of beer.
353
+ Take it down and pass it around, no more bottles of beer on the wall.
354
+
355
+ No more bottles of beer on the wall, no more bottles of beer.
356
+ Go to the store and buy some more, 99 bottles of beer on the wall.
357
+ `)
358
+ })
359
+
360
+ })
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "xtypescript",
3
+ "version": "0",
4
+ "description": "Exercism exercises in Typescript.",
5
+ "author": "",
6
+ "private": true,
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/exercism/xtypescript"
10
+ },
11
+ "devDependencies": {
12
+ },
13
+ "scripts": {
14
+ "test": "jest --no-cache",
15
+ "lint": "tslint '*.ts?(x)'; exit 0"
16
+ },
17
+ "dependencies": {
18
+ "@types/jest": "^18.1.1",
19
+ "@types/node": "^7.0.5",
20
+ "jest": "^18.1.0",
21
+ "ts-jest": "^18.0.3",
22
+ "tslint": "^4.4.2",
23
+ "typescript": "^2.1.6"
24
+ },
25
+ "jest": {
26
+ "transform": {
27
+ ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
28
+ },
29
+ "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
30
+ "testResultsProcessor": "<rootDir>/node_modules/ts-jest/coverageprocessor.js",
31
+ "moduleFileExtensions": [
32
+ "ts",
33
+ "tsx",
34
+ "js"
35
+ ]
36
+ }
37
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2017",
4
+ "module": "commonjs",
5
+ "alwaysStrict": true,
6
+ "noUnusedLocals": true,
7
+ "noUnusedParameters": true,
8
+ "noImplicitAny": true,
9
+ "strictNullChecks": true,
10
+ "preserveConstEnums": true,
11
+ "noFallthroughCasesInSwitch":true,
12
+ "noImplicitThis":true,
13
+ "noImplicitReturns":true,
14
+ "sourceMap": true,
15
+ "outDir": "./build"
16
+ },
17
+ "compileOnSave": true,
18
+ "exclude": [
19
+ "node_modules"
20
+ ]
21
+ }