trackler 2.2.1.151 → 2.2.1.152

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. checksums.yaml +4 -4
  2. data/lib/trackler/version.rb +1 -1
  3. data/problem-specifications/exercises/hamming/description.md +4 -3
  4. data/problem-specifications/exercises/isbn-verifier/canonical-data.json +9 -1
  5. data/tracks/clojure/exercises/bob/README.md +2 -0
  6. data/tracks/clojure/exercises/bob/src/example.clj +4 -0
  7. data/tracks/clojure/exercises/bob/test/bob_test.clj +1 -1
  8. data/tracks/clojure/exercises/say/README.md +2 -1
  9. data/tracks/csharp/exercises/acronym/AcronymTest.cs +3 -9
  10. data/tracks/csharp/exercises/all-your-base/AllYourBaseTest.cs +43 -43
  11. data/tracks/csharp/exercises/allergies/AllergiesTest.cs +1 -1
  12. data/tracks/csharp/exercises/alphametics/AlphameticsTest.cs +21 -1
  13. data/tracks/csharp/exercises/anagram/AnagramTest.cs +1 -35
  14. data/tracks/csharp/exercises/atbash-cipher/AtbashCipherTest.cs +1 -1
  15. data/tracks/csharp/exercises/beer-song/BeerSong.cs +1 -6
  16. data/tracks/csharp/exercises/beer-song/BeerSongTest.cs +20 -28
  17. data/tracks/csharp/exercises/beer-song/Example.cs +6 -6
  18. data/tracks/csharp/exercises/binary-search/BinarySearchTest.cs +1 -1
  19. data/tracks/csharp/exercises/bob/BobTest.cs +1 -1
  20. data/tracks/csharp/exercises/book-store/BookStoreTest.cs +1 -1
  21. data/tracks/csharp/exercises/bowling/BowlingTest.cs +47 -29
  22. data/tracks/csharp/exercises/bracket-push/BracketPushTest.cs +36 -29
  23. data/tracks/csharp/exercises/change/Change.cs +1 -1
  24. data/tracks/csharp/exercises/change/ChangeTest.cs +48 -21
  25. data/tracks/csharp/exercises/change/Example.cs +31 -18
  26. data/tracks/csharp/exercises/circular-buffer/CircularBuffer.cs +2 -2
  27. data/tracks/csharp/exercises/circular-buffer/CircularBufferTest.cs +88 -111
  28. data/tracks/csharp/exercises/circular-buffer/Example.cs +7 -7
  29. data/tracks/csharp/exercises/clock/ClockTest.cs +37 -37
  30. data/tracks/csharp/exercises/collatz-conjecture/CollatzConjectureTest.cs +1 -1
  31. data/tracks/csharp/exercises/complex-numbers/ComplexNumbersTest.cs +19 -10
  32. data/tracks/csharp/exercises/connect/ConnectTest.cs +1 -1
  33. data/tracks/csharp/exercises/crypto-square/CryptoSquareTest.cs +1 -1
  34. data/tracks/csharp/exercises/custom-set/.meta/hints.md +3 -3
  35. data/tracks/csharp/exercises/custom-set/CustomSet.cs +10 -49
  36. data/tracks/csharp/exercises/custom-set/CustomSetTest.cs +153 -157
  37. data/tracks/csharp/exercises/custom-set/Example.cs +26 -54
  38. data/tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs +1 -1
  39. data/tracks/csharp/exercises/dominoes/DominoesTest.cs +25 -25
  40. data/tracks/csharp/exercises/etl/Etl.cs +1 -1
  41. data/tracks/csharp/exercises/etl/EtlTest.cs +4 -4
  42. data/tracks/csharp/exercises/etl/Example.cs +1 -1
  43. data/tracks/csharp/exercises/flatten-array/FlattenArrayTest.cs +13 -13
  44. data/tracks/csharp/exercises/food-chain/Example.cs +5 -0
  45. data/tracks/csharp/exercises/food-chain/FoodChain.cs +5 -0
  46. data/tracks/csharp/exercises/food-chain/FoodChainTest.cs +9 -9
  47. data/tracks/csharp/exercises/forth/Example.cs +28 -33
  48. data/tracks/csharp/exercises/forth/Forth.cs +1 -19
  49. data/tracks/csharp/exercises/forth/ForthTest.cs +215 -52
  50. data/tracks/csharp/exercises/gigasecond/GigasecondTest.cs +1 -1
  51. data/tracks/csharp/exercises/grains/GrainsTest.cs +1 -1
  52. data/tracks/csharp/exercises/grep/Example.cs +1 -1
  53. data/tracks/csharp/exercises/grep/Grep.cs +1 -1
  54. data/tracks/csharp/exercises/grep/GrepTest.cs +268 -237
  55. data/tracks/csharp/exercises/hamming/HammingTest.cs +1 -1
  56. data/tracks/csharp/exercises/hello-world/HelloWorldTest.cs +1 -1
  57. data/tracks/csharp/exercises/house/Example.cs +7 -2
  58. data/tracks/csharp/exercises/house/House.cs +5 -0
  59. data/tracks/csharp/exercises/house/HouseTest.cs +40 -223
  60. data/tracks/csharp/exercises/isbn-verifier/IsbnVerifierTest.cs +14 -2
  61. data/tracks/csharp/exercises/isogram/IsogramTest.cs +1 -1
  62. data/tracks/csharp/exercises/kindergarten-garden/KindergartenGardenTest.cs +1 -1
  63. data/tracks/csharp/exercises/largest-series-product/LargestSeriesProductTest.cs +1 -1
  64. data/tracks/csharp/exercises/leap/LeapTest.cs +1 -1
  65. data/tracks/csharp/exercises/luhn/LuhnTest.cs +1 -1
  66. data/tracks/csharp/exercises/markdown/MarkdownTest.cs +34 -27
  67. data/tracks/csharp/exercises/minesweeper/MinesweeperTest.cs +29 -34
  68. data/tracks/csharp/exercises/nth-prime/NthPrimeTest.cs +1 -1
  69. data/tracks/csharp/exercises/nucleotide-count/NucleotideCountTest.cs +1 -1
  70. data/tracks/csharp/exercises/ocr-numbers/OcrNumbersTest.cs +35 -35
  71. data/tracks/csharp/exercises/pangram/PangramTest.cs +1 -1
  72. data/tracks/csharp/exercises/pascals-triangle/PascalsTriangleTest.cs +1 -1
  73. data/tracks/csharp/exercises/perfect-numbers/PerfectNumbersTest.cs +1 -1
  74. data/tracks/csharp/exercises/phone-number/PhoneNumberTest.cs +17 -3
  75. data/tracks/csharp/exercises/pig-latin/PigLatinTest.cs +1 -1
  76. data/tracks/csharp/exercises/poker/PokerTest.cs +1 -1
  77. data/tracks/csharp/exercises/prime-factors/PrimeFactorsTest.cs +1 -1
  78. data/tracks/csharp/exercises/protein-translation/Example.cs +4 -4
  79. data/tracks/csharp/exercises/protein-translation/ProteinTranslation.cs +1 -1
  80. data/tracks/csharp/exercises/protein-translation/ProteinTranslationTest.cs +104 -45
  81. data/tracks/csharp/exercises/proverb/ProverbTest.cs +38 -6
  82. data/tracks/csharp/exercises/queen-attack/QueenAttackTest.cs +1 -1
  83. data/tracks/csharp/exercises/rail-fence-cipher/RailFenceCipherTest.cs +1 -1
  84. data/tracks/csharp/exercises/raindrops/RaindropsTest.cs +1 -1
  85. data/tracks/csharp/exercises/rectangles/RectanglesTest.cs +63 -21
  86. data/tracks/csharp/exercises/reverse-string/ReverseStringTest.cs +1 -1
  87. data/tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs +1 -1
  88. data/tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs +7 -1
  89. data/tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs +1 -1
  90. data/tracks/csharp/exercises/run-length-encoding/RunLengthEncodingTest.cs +1 -1
  91. data/tracks/csharp/exercises/saddle-points/SaddlePointsTest.cs +11 -11
  92. data/tracks/csharp/exercises/say/SayTest.cs +1 -1
  93. data/tracks/csharp/exercises/scale-generator/Example.cs +5 -0
  94. data/tracks/csharp/exercises/scale-generator/ScaleGenerator.cs +5 -0
  95. data/tracks/csharp/exercises/scale-generator/ScaleGeneratorTest.cs +56 -47
  96. data/tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs +1 -1
  97. data/tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs +1 -1
  98. data/tracks/csharp/exercises/sieve/SieveTest.cs +1 -1
  99. data/tracks/csharp/exercises/space-age/SpaceAgeTest.cs +1 -1
  100. data/tracks/csharp/exercises/spiral-matrix/SpiralMatrixTest.cs +28 -34
  101. data/tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs +1 -1
  102. data/tracks/csharp/exercises/tournament/Example.cs +15 -7
  103. data/tracks/csharp/exercises/tournament/TournamentTest.cs +97 -99
  104. data/tracks/csharp/exercises/transpose/TransposeTest.cs +50 -96
  105. data/tracks/csharp/exercises/triangle/TriangleTest.cs +1 -1
  106. data/tracks/csharp/exercises/twelve-days/TwelveDays.cs +1 -1
  107. data/tracks/csharp/exercises/two-bucket/TwoBucketTest.cs +1 -1
  108. data/tracks/csharp/exercises/two-fer/TwoFerTest.cs +1 -1
  109. data/tracks/csharp/exercises/variable-length-quantity/Example.cs +3 -3
  110. data/tracks/csharp/exercises/variable-length-quantity/VariableLengthQuantity.cs +2 -2
  111. data/tracks/csharp/exercises/variable-length-quantity/VariableLengthQuantityTest.cs +165 -40
  112. data/tracks/csharp/exercises/word-count/Example.cs +1 -1
  113. data/tracks/csharp/exercises/word-count/WordCount.cs +1 -1
  114. data/tracks/csharp/exercises/word-count/WordCountTest.cs +12 -12
  115. data/tracks/csharp/exercises/wordy/WordyTest.cs +1 -1
  116. data/tracks/csharp/exercises/yacht/Example.cs +2 -5
  117. data/tracks/csharp/exercises/yacht/YachtTest.cs +7 -1
  118. data/tracks/csharp/exercises/zebra-puzzle/Example.cs +4 -4
  119. data/tracks/csharp/exercises/zebra-puzzle/ZebraPuzzle.cs +2 -2
  120. data/tracks/csharp/exercises/zebra-puzzle/ZebraPuzzleTest.cs +7 -5
  121. data/tracks/csharp/generators/Exercises/AllYourBase.cs +1 -0
  122. data/tracks/csharp/generators/Exercises/Alphametics.cs +5 -2
  123. data/tracks/csharp/generators/Exercises/BeerSong.cs +3 -0
  124. data/tracks/csharp/generators/Exercises/BinarySearch.cs +1 -0
  125. data/tracks/csharp/generators/Exercises/BookStore.cs +2 -0
  126. data/tracks/csharp/generators/Exercises/Bowling.cs +20 -15
  127. data/tracks/csharp/generators/Exercises/BracketPush.cs +1 -1
  128. data/tracks/csharp/generators/Exercises/Change.cs +20 -0
  129. data/tracks/csharp/generators/Exercises/CircularBuffer.cs +74 -0
  130. data/tracks/csharp/generators/Exercises/Clock.cs +7 -8
  131. data/tracks/csharp/generators/Exercises/ComplexNumbers.cs +9 -16
  132. data/tracks/csharp/generators/Exercises/Connect.cs +6 -6
  133. data/tracks/csharp/generators/Exercises/CustomSet.cs +56 -0
  134. data/tracks/csharp/generators/Exercises/Dominoes.cs +2 -2
  135. data/tracks/csharp/generators/Exercises/Etl.cs +7 -35
  136. data/tracks/csharp/generators/Exercises/FlattenArray.cs +9 -13
  137. data/tracks/csharp/generators/Exercises/FoodChain.cs +5 -0
  138. data/tracks/csharp/generators/Exercises/Forth.cs +25 -0
  139. data/tracks/csharp/generators/Exercises/Gigasecond.cs +4 -4
  140. data/tracks/csharp/generators/Exercises/Grains.cs +1 -1
  141. data/tracks/csharp/generators/Exercises/Grep.cs +106 -0
  142. data/tracks/csharp/generators/Exercises/Hamming.cs +1 -1
  143. data/tracks/csharp/generators/Exercises/House.cs +5 -0
  144. data/tracks/csharp/generators/Exercises/KindergartenGarden.cs +3 -3
  145. data/tracks/csharp/generators/Exercises/Markdown.cs +25 -0
  146. data/tracks/csharp/generators/Exercises/Meetup.cs +6 -6
  147. data/tracks/csharp/generators/Exercises/Minesweeper.cs +14 -4
  148. data/tracks/csharp/generators/Exercises/OcrNumbers.cs +12 -3
  149. data/tracks/csharp/generators/Exercises/PascalsTriangle.cs +0 -7
  150. data/tracks/csharp/generators/Exercises/ProteinTranslation.cs +8 -0
  151. data/tracks/csharp/generators/Exercises/Proverb.cs +7 -5
  152. data/tracks/csharp/generators/Exercises/QueenAttack.cs +3 -3
  153. data/tracks/csharp/generators/Exercises/Rectangles.cs +17 -0
  154. data/tracks/csharp/generators/Exercises/RobotSimulator.cs +6 -6
  155. data/tracks/csharp/generators/Exercises/SaddlePoints.cs +2 -2
  156. data/tracks/csharp/generators/Exercises/Say.cs +1 -1
  157. data/tracks/csharp/generators/Exercises/ScaleGenerator.cs +15 -0
  158. data/tracks/csharp/generators/Exercises/SpiralMatrix.cs +45 -0
  159. data/tracks/csharp/generators/Exercises/Sublist.cs +4 -5
  160. data/tracks/csharp/generators/Exercises/SumOfMultiples.cs +10 -1
  161. data/tracks/csharp/generators/Exercises/Tournament.cs +11 -19
  162. data/tracks/csharp/generators/Exercises/Transpose.cs +2 -2
  163. data/tracks/csharp/generators/Exercises/Triangle.cs +1 -3
  164. data/tracks/csharp/generators/Exercises/TwelveDays.cs +3 -4
  165. data/tracks/csharp/generators/Exercises/TwoBucket.cs +5 -5
  166. data/tracks/csharp/generators/Exercises/TwoFer.cs +11 -2
  167. data/tracks/csharp/generators/Exercises/VariableLengthQuantity.cs +44 -0
  168. data/tracks/csharp/generators/Exercises/Yacht.cs +11 -10
  169. data/tracks/csharp/generators/Exercises/ZebraPuzzle.cs +19 -0
  170. data/tracks/csharp/generators/GeneratorExercise.cs +6 -6
  171. data/tracks/csharp/generators/Input/CanonicalData.cs +6 -9
  172. data/tracks/csharp/generators/Input/CanonicalDataCase.cs +13 -46
  173. data/tracks/csharp/generators/Input/CanonicalDataCaseParser.cs +170 -0
  174. data/tracks/csharp/generators/Input/CanonicalDataFile.cs +1 -2
  175. data/tracks/csharp/generators/Input/CanonicalDataParser.cs +16 -12
  176. data/tracks/csharp/generators/Input/ConfigFile.cs +0 -5
  177. data/tracks/csharp/generators/Input/ConvertHelper.cs +20 -0
  178. data/tracks/csharp/generators/Output/Templates/_TestClassDisposable.liquid +14 -0
  179. data/tracks/csharp/generators/Output/TestMethodBodyData.cs +11 -14
  180. data/tracks/csharp/generators/Output/ValueFormatter.cs +20 -7
  181. data/tracks/delphi/config.json +22 -0
  182. data/tracks/delphi/exercises/grade-school/GradeSchool.dpr +60 -0
  183. data/tracks/delphi/exercises/grade-school/README.md +62 -0
  184. data/tracks/delphi/exercises/grade-school/uGradeSchoolExample.pas +134 -0
  185. data/tracks/delphi/exercises/grade-school/uGradeSchoolTest.pas +150 -0
  186. data/tracks/delphi/exercises/hamming/README.md +4 -3
  187. data/tracks/delphi/exercises/proverb/Proverb.dpr +60 -0
  188. data/tracks/delphi/exercises/proverb/README.md +44 -0
  189. data/tracks/delphi/exercises/proverb/uProverbExample.pas +60 -0
  190. data/tracks/delphi/exercises/proverb/uProverbTests.pas +124 -0
  191. data/tracks/go/exercises/bracket-push/README.md +3 -2
  192. data/tracks/go/exercises/bracket-push/cases_test.go +7 -2
  193. data/tracks/go/exercises/isbn-verifier/cases_test.go +4 -3
  194. data/tracks/go/exercises/yacht/cases_test.go +8 -2
  195. data/tracks/java/exercises/armstrong-numbers/README.md +1 -1
  196. data/tracks/java/exercises/binary-search-tree/src/test/java/BinarySearchTreeTest.java +22 -22
  197. data/tracks/java/exercises/bracket-push/README.md +3 -2
  198. data/tracks/java/exercises/crypto-square/README.md +23 -19
  199. data/tracks/java/exercises/grade-school/src/test/java/SchoolTest.java +1 -1
  200. data/tracks/java/exercises/poker/.meta/{version.txt → version} +0 -0
  201. data/tracks/java/exercises/queen-attack/src/test/java/QueenAttackCalculatorTest.java +7 -7
  202. data/tracks/java/exercises/rail-fence-cipher/.meta/version +1 -0
  203. data/tracks/java/exercises/robot-simulator/src/test/java/RobotTest.java +45 -45
  204. data/tracks/nim/config.json +24 -0
  205. data/tracks/nim/exercises/armstrong-numbers/README.md +18 -0
  206. data/tracks/nim/exercises/armstrong-numbers/armstrong_number_test.nim +29 -0
  207. data/tracks/nim/exercises/armstrong-numbers/example.nim +11 -0
  208. data/tracks/nim/exercises/leap/leap_test.nim +12 -10
  209. data/tracks/nim/exercises/two-fer/README.md +19 -0
  210. data/tracks/nim/exercises/two-fer/example.nim +3 -0
  211. data/tracks/nim/exercises/two-fer/two_fer_test.nim +16 -0
  212. data/tracks/python/.travis.yml +0 -1
  213. data/tracks/python/README.md +1 -1
  214. data/tracks/python/config/exercise_readme.go.tmpl +1 -1
  215. data/tracks/python/docs/INSTALLATION.md +1 -1
  216. data/tracks/python/exercises/accumulate/README.md +1 -1
  217. data/tracks/python/exercises/acronym/README.md +1 -1
  218. data/tracks/python/exercises/all-your-base/README.md +1 -1
  219. data/tracks/python/exercises/allergies/README.md +1 -1
  220. data/tracks/python/exercises/alphametics/README.md +1 -1
  221. data/tracks/python/exercises/anagram/README.md +1 -1
  222. data/tracks/python/exercises/armstrong-numbers/README.md +2 -2
  223. data/tracks/python/exercises/atbash-cipher/README.md +1 -1
  224. data/tracks/python/exercises/bank-account/README.md +1 -1
  225. data/tracks/python/exercises/beer-song/README.md +1 -1
  226. data/tracks/python/exercises/binary-search-tree/README.md +1 -1
  227. data/tracks/python/exercises/binary-search/README.md +1 -1
  228. data/tracks/python/exercises/binary/README.md +1 -1
  229. data/tracks/python/exercises/bob/README.md +1 -1
  230. data/tracks/python/exercises/book-store/README.md +1 -1
  231. data/tracks/python/exercises/bowling/README.md +1 -1
  232. data/tracks/python/exercises/bracket-push/README.md +4 -3
  233. data/tracks/python/exercises/change/README.md +1 -1
  234. data/tracks/python/exercises/circular-buffer/README.md +1 -1
  235. data/tracks/python/exercises/clock/README.md +1 -1
  236. data/tracks/python/exercises/collatz-conjecture/README.md +1 -1
  237. data/tracks/python/exercises/complex-numbers/README.md +1 -1
  238. data/tracks/python/exercises/connect/README.md +1 -1
  239. data/tracks/python/exercises/crypto-square/README.md +1 -1
  240. data/tracks/python/exercises/custom-set/README.md +1 -1
  241. data/tracks/python/exercises/diamond/README.md +1 -1
  242. data/tracks/python/exercises/difference-of-squares/README.md +1 -1
  243. data/tracks/python/exercises/diffie-hellman/README.md +1 -1
  244. data/tracks/python/exercises/dominoes/README.md +1 -1
  245. data/tracks/python/exercises/dot-dsl/README.md +1 -1
  246. data/tracks/python/exercises/error-handling/README.md +1 -1
  247. data/tracks/python/exercises/etl/README.md +1 -1
  248. data/tracks/python/exercises/flatten-array/README.md +1 -1
  249. data/tracks/python/exercises/food-chain/README.md +1 -1
  250. data/tracks/python/exercises/forth/README.md +1 -1
  251. data/tracks/python/exercises/gigasecond/README.md +1 -1
  252. data/tracks/python/exercises/go-counting/README.md +1 -1
  253. data/tracks/python/exercises/grade-school/README.md +1 -1
  254. data/tracks/python/exercises/grains/README.md +1 -1
  255. data/tracks/python/exercises/grep/README.md +1 -1
  256. data/tracks/python/exercises/hamming/README.md +1 -1
  257. data/tracks/python/exercises/hello-world/README.md +1 -1
  258. data/tracks/python/exercises/hexadecimal/README.md +1 -1
  259. data/tracks/python/exercises/house/README.md +1 -1
  260. data/tracks/python/exercises/isbn-verifier/README.md +1 -1
  261. data/tracks/python/exercises/isogram/README.md +1 -1
  262. data/tracks/python/exercises/kindergarten-garden/README.md +1 -1
  263. data/tracks/python/exercises/largest-series-product/README.md +1 -1
  264. data/tracks/python/exercises/leap/README.md +1 -1
  265. data/tracks/python/exercises/linked-list/README.md +1 -1
  266. data/tracks/python/exercises/list-ops/README.md +1 -1
  267. data/tracks/python/exercises/luhn/README.md +1 -1
  268. data/tracks/python/exercises/markdown/README.md +1 -1
  269. data/tracks/python/exercises/matrix/README.md +1 -1
  270. data/tracks/python/exercises/meetup/README.md +1 -1
  271. data/tracks/python/exercises/minesweeper/README.md +1 -1
  272. data/tracks/python/exercises/nth-prime/README.md +1 -1
  273. data/tracks/python/exercises/nucleotide-count/README.md +1 -1
  274. data/tracks/python/exercises/ocr-numbers/README.md +1 -1
  275. data/tracks/python/exercises/octal/README.md +1 -1
  276. data/tracks/python/exercises/palindrome-products/README.md +1 -1
  277. data/tracks/python/exercises/pangram/README.md +1 -1
  278. data/tracks/python/exercises/parallel-letter-frequency/README.md +1 -1
  279. data/tracks/python/exercises/pascals-triangle/README.md +1 -1
  280. data/tracks/python/exercises/perfect-numbers/README.md +1 -1
  281. data/tracks/python/exercises/phone-number/README.md +1 -1
  282. data/tracks/python/exercises/pig-latin/README.md +1 -1
  283. data/tracks/python/exercises/point-mutations/README.md +1 -1
  284. data/tracks/python/exercises/poker/README.md +1 -1
  285. data/tracks/python/exercises/pov/README.md +1 -1
  286. data/tracks/python/exercises/prime-factors/README.md +1 -1
  287. data/tracks/python/exercises/protein-translation/README.md +1 -1
  288. data/tracks/python/exercises/proverb/README.md +1 -1
  289. data/tracks/python/exercises/pythagorean-triplet/README.md +1 -1
  290. data/tracks/python/exercises/queen-attack/README.md +1 -1
  291. data/tracks/python/exercises/rail-fence-cipher/README.md +1 -1
  292. data/tracks/python/exercises/raindrops/README.md +1 -1
  293. data/tracks/python/exercises/rational-numbers/README.md +1 -1
  294. data/tracks/python/exercises/react/README.md +1 -1
  295. data/tracks/python/exercises/rectangles/README.md +1 -1
  296. data/tracks/python/exercises/reverse-string/README.md +1 -1
  297. data/tracks/python/exercises/rna-transcription/README.md +1 -1
  298. data/tracks/python/exercises/robot-name/README.md +1 -1
  299. data/tracks/python/exercises/robot-simulator/README.md +1 -1
  300. data/tracks/python/exercises/roman-numerals/README.md +1 -1
  301. data/tracks/python/exercises/rotational-cipher/README.md +1 -1
  302. data/tracks/python/exercises/run-length-encoding/README.md +1 -1
  303. data/tracks/python/exercises/saddle-points/README.md +1 -1
  304. data/tracks/python/exercises/say/README.md +1 -1
  305. data/tracks/python/exercises/scale-generator/README.md +1 -1
  306. data/tracks/python/exercises/scrabble-score/README.md +1 -1
  307. data/tracks/python/exercises/secret-handshake/README.md +1 -1
  308. data/tracks/python/exercises/series/README.md +1 -1
  309. data/tracks/python/exercises/sgf-parsing/README.md +1 -1
  310. data/tracks/python/exercises/sieve/README.md +1 -1
  311. data/tracks/python/exercises/simple-cipher/README.md +1 -1
  312. data/tracks/python/exercises/simple-linked-list/README.md +1 -1
  313. data/tracks/python/exercises/space-age/README.md +1 -1
  314. data/tracks/python/exercises/spiral-matrix/README.md +1 -1
  315. data/tracks/python/exercises/strain/README.md +1 -1
  316. data/tracks/python/exercises/sublist/README.md +1 -1
  317. data/tracks/python/exercises/sum-of-multiples/README.md +1 -1
  318. data/tracks/python/exercises/tournament/README.md +1 -1
  319. data/tracks/python/exercises/transpose/README.md +1 -1
  320. data/tracks/python/exercises/tree-building/README.md +1 -1
  321. data/tracks/python/exercises/triangle/README.md +1 -1
  322. data/tracks/python/exercises/trinary/README.md +1 -1
  323. data/tracks/python/exercises/twelve-days/README.md +1 -1
  324. data/tracks/python/exercises/two-bucket/README.md +1 -1
  325. data/tracks/python/exercises/two-fer/README.md +1 -1
  326. data/tracks/python/exercises/variable-length-quantity/README.md +1 -1
  327. data/tracks/python/exercises/word-count/README.md +1 -1
  328. data/tracks/python/exercises/word-search/README.md +1 -1
  329. data/tracks/python/exercises/wordy/README.md +1 -1
  330. data/tracks/python/exercises/yacht/README.md +1 -1
  331. data/tracks/python/exercises/zebra-puzzle/README.md +1 -1
  332. data/tracks/python/exercises/zipper/README.md +1 -1
  333. data/tracks/python/requirements-travis.txt +1 -1
  334. data/tracks/swift/exercises/scale-generator/Tests/ScaleGeneratorTests/ScaleGeneratorTests.swift +1 -1
  335. metadata +32 -8
  336. data/tracks/csharp/generators/Input/CanonicalDataCaseJson.cs +0 -73
  337. data/tracks/csharp/generators/Input/CanonicalDataCaseJsonConverter.cs +0 -49
  338. data/tracks/csharp/generators/Input/CanonicalDataCasesJson.cs +0 -58
  339. data/tracks/csharp/generators/Input/CanonicalDataCasesJsonConverter.cs +0 -17
  340. data/tracks/java/exercises/go-counting/src/main/java/.keep +0 -0
@@ -1,4 +1,4 @@
1
- // This file was auto-generated based on version 1.0.0 of the canonical data.
1
+ // This file was auto-generated based on version 1.1.0 of the canonical data.
2
2
 
3
3
  using Xunit;
4
4
 
@@ -7,7 +7,7 @@ public static string Recite(int verseNumber)
7
7
  throw new NotImplementedException("You need to implement this function.");
8
8
  }
9
9
 
10
- public static string Recite(int start, int end)
10
+ public static string Recite(int startVerse, int endVerse)
11
11
  {
12
12
  throw new NotImplementedException("You need to implement this function.");
13
13
  }
@@ -1,4 +1,4 @@
1
- // This file was auto-generated based on version 1.2.0 of the canonical data.
1
+ // This file was auto-generated based on version 1.4.0 of the canonical data.
2
2
 
3
3
  using Xunit;
4
4
 
@@ -1,4 +1,4 @@
1
- // This file was auto-generated based on version 1.1.0 of the canonical data.
1
+ // This file was auto-generated based on version 1.2.0 of the canonical data.
2
2
 
3
3
  using Xunit;
4
4
 
@@ -7,9 +7,9 @@ public static class VariableLengthQuantity
7
7
  private const uint SevenBitsMask = 0x7fu;
8
8
  private const uint EightBitMask = 0x80u;
9
9
 
10
- public static uint[] ToBytes(uint[] numbers) => numbers.SelectMany(ToBytesSingle).ToArray();
10
+ public static uint[] Encode(uint[] numbers) => numbers.SelectMany(EncodeSingle).ToArray();
11
11
 
12
- private static IEnumerable<uint> ToBytesSingle(uint number)
12
+ private static IEnumerable<uint> EncodeSingle(uint number)
13
13
  {
14
14
  if (number == 0)
15
15
  {
@@ -35,7 +35,7 @@ private static IEnumerable<uint> ToBytesSingle(uint number)
35
35
  return bytes;
36
36
  }
37
37
 
38
- public static uint[] FromBytes(uint[] bytes)
38
+ public static uint[] Decode(uint[] bytes)
39
39
  {
40
40
  var numbers = new List<uint>();
41
41
  var tmp = 0u;
@@ -2,12 +2,12 @@
2
2
 
3
3
  public static class VariableLengthQuantity
4
4
  {
5
- public static uint[] ToBytes(uint[] numbers)
5
+ public static uint[] Encode(uint[] numbers)
6
6
  {
7
7
  throw new NotImplementedException("You need to implement this function.");
8
8
  }
9
9
 
10
- public static uint[] FromBytes(uint[] bytes)
10
+ public static uint[] Decode(uint[] bytes)
11
11
  {
12
12
  throw new NotImplementedException("You need to implement this function.");
13
13
  }
@@ -1,88 +1,213 @@
1
- using System;
1
+ // This file was auto-generated based on version 1.1.0 of the canonical data.
2
+
2
3
  using Xunit;
4
+ using System;
3
5
 
4
6
  public class VariableLengthQuantityTest
5
7
  {
6
8
  [Fact]
7
- public void To_single_byte()
9
+ public void Zero()
10
+ {
11
+ var integers = new[] { 0x0u };
12
+ var expected = new[] { 0x0u };
13
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
14
+ }
15
+
16
+ [Fact(Skip = "Remove to run test")]
17
+ public void Arbitrary_single_byte()
18
+ {
19
+ var integers = new[] { 0x40u };
20
+ var expected = new[] { 0x40u };
21
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
22
+ }
23
+
24
+ [Fact(Skip = "Remove to run test")]
25
+ public void Largest_single_byte()
26
+ {
27
+ var integers = new[] { 0x7Fu };
28
+ var expected = new[] { 0x7Fu };
29
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
30
+ }
31
+
32
+ [Fact(Skip = "Remove to run test")]
33
+ public void Smallest_double_byte()
34
+ {
35
+ var integers = new[] { 0x80u };
36
+ var expected = new[] { 0x81u, 0x0u };
37
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
38
+ }
39
+
40
+ [Fact(Skip = "Remove to run test")]
41
+ public void Arbitrary_double_byte()
42
+ {
43
+ var integers = new[] { 0x2000u };
44
+ var expected = new[] { 0xC0u, 0x0u };
45
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
46
+ }
47
+
48
+ [Fact(Skip = "Remove to run test")]
49
+ public void Largest_double_byte()
50
+ {
51
+ var integers = new[] { 0x3FFFu };
52
+ var expected = new[] { 0xFFu, 0x7Fu };
53
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
54
+ }
55
+
56
+ [Fact(Skip = "Remove to run test")]
57
+ public void Smallest_triple_byte()
58
+ {
59
+ var integers = new[] { 0x4000u };
60
+ var expected = new[] { 0x81u, 0x80u, 0x0u };
61
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
62
+ }
63
+
64
+ [Fact(Skip = "Remove to run test")]
65
+ public void Arbitrary_triple_byte()
66
+ {
67
+ var integers = new[] { 0x100000u };
68
+ var expected = new[] { 0xC0u, 0x80u, 0x0u };
69
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
70
+ }
71
+
72
+ [Fact(Skip = "Remove to run test")]
73
+ public void Largest_triple_byte()
74
+ {
75
+ var integers = new[] { 0x1FFFFFu };
76
+ var expected = new[] { 0xFFu, 0xFFu, 0x7Fu };
77
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
78
+ }
79
+
80
+ [Fact(Skip = "Remove to run test")]
81
+ public void Smallest_quadruple_byte()
82
+ {
83
+ var integers = new[] { 0x200000u };
84
+ var expected = new[] { 0x81u, 0x80u, 0x80u, 0x0u };
85
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
86
+ }
87
+
88
+ [Fact(Skip = "Remove to run test")]
89
+ public void Arbitrary_quadruple_byte()
90
+ {
91
+ var integers = new[] { 0x8000000u };
92
+ var expected = new[] { 0xC0u, 0x80u, 0x80u, 0x0u };
93
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
94
+ }
95
+
96
+ [Fact(Skip = "Remove to run test")]
97
+ public void Largest_quadruple_byte()
98
+ {
99
+ var integers = new[] { 0xFFFFFFFu };
100
+ var expected = new[] { 0xFFu, 0xFFu, 0xFFu, 0x7Fu };
101
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
102
+ }
103
+
104
+ [Fact(Skip = "Remove to run test")]
105
+ public void Smallest_quintuple_byte()
106
+ {
107
+ var integers = new[] { 0x10000000u };
108
+ var expected = new[] { 0x81u, 0x80u, 0x80u, 0x80u, 0x0u };
109
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
110
+ }
111
+
112
+ [Fact(Skip = "Remove to run test")]
113
+ public void Arbitrary_quintuple_byte()
114
+ {
115
+ var integers = new[] { 0xFF000000u };
116
+ var expected = new[] { 0x8Fu, 0xF8u, 0x80u, 0x80u, 0x0u };
117
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
118
+ }
119
+
120
+ [Fact(Skip = "Remove to run test")]
121
+ public void Maximum_32_bit_integer_input()
122
+ {
123
+ var integers = new[] { 0xFFFFFFFFu };
124
+ var expected = new[] { 0x8Fu, 0xFFu, 0xFFu, 0xFFu, 0x7Fu };
125
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
126
+ }
127
+
128
+ [Fact(Skip = "Remove to run test")]
129
+ public void Two_single_byte_values()
8
130
  {
9
- Assert.Equal(new[] { 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0x00u }));
10
- Assert.Equal(new[] { 0x40u }, VariableLengthQuantity.ToBytes(new[] { 0x40u }));
11
- Assert.Equal(new[] { 0x7fu }, VariableLengthQuantity.ToBytes(new[] { 0x7fu }));
131
+ var integers = new[] { 0x40u, 0x7Fu };
132
+ var expected = new[] { 0x40u, 0x7Fu };
133
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
12
134
  }
13
135
 
14
136
  [Fact(Skip = "Remove to run test")]
15
- public void To_double_byte()
137
+ public void Two_multi_byte_values()
16
138
  {
17
- Assert.Equal(new[] { 0x81u, 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0x80u }));
18
- Assert.Equal(new[] { 0xc0u, 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0x2000u }));
19
- Assert.Equal(new[] { 0xffu, 0x7fu }, VariableLengthQuantity.ToBytes(new[] { 0x3fffu }));
139
+ var integers = new[] { 0x4000u, 0x123456u };
140
+ var expected = new[] { 0x81u, 0x80u, 0x0u, 0xC8u, 0xE8u, 0x56u };
141
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
20
142
  }
21
143
 
22
144
  [Fact(Skip = "Remove to run test")]
23
- public void To_triple_byte()
145
+ public void Many_multi_byte_values()
24
146
  {
25
- Assert.Equal(new[] { 0x81u, 0x80u, 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0x4000u }));
26
- Assert.Equal(new[] { 0xc0u, 0x80u, 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0x100000u }));
27
- Assert.Equal(new[] { 0xffu, 0xffu, 0x7fu }, VariableLengthQuantity.ToBytes(new[] { 0x1fffffu }));
147
+ var integers = new[] { 0x2000u, 0x123456u, 0xFFFFFFFu, 0x0u, 0x3FFFu, 0x4000u };
148
+ var expected = new[] { 0xC0u, 0x0u, 0xC8u, 0xE8u, 0x56u, 0xFFu, 0xFFu, 0xFFu, 0x7Fu, 0x0u, 0xFFu, 0x7Fu, 0x81u, 0x80u, 0x0u };
149
+ Assert.Equal(expected, VariableLengthQuantity.Encode(integers));
28
150
  }
29
151
 
30
152
  [Fact(Skip = "Remove to run test")]
31
- public void To_quadruple_byte()
153
+ public void One_byte()
32
154
  {
33
- Assert.Equal(new[] { 0x81u, 0x80u, 0x80u, 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0x200000u }));
34
- Assert.Equal(new[] { 0xc0u, 0x80u, 0x80u, 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0x08000000u }));
35
- Assert.Equal(new[] { 0xffu, 0xffu, 0xffu, 0x7fu }, VariableLengthQuantity.ToBytes(new[] { 0x0fffffffu }));
155
+ var integers = new[] { 0x7Fu };
156
+ var expected = new[] { 0x7Fu };
157
+ Assert.Equal(expected, VariableLengthQuantity.Decode(integers));
36
158
  }
37
159
 
38
160
  [Fact(Skip = "Remove to run test")]
39
- public void To_quintuple_byte()
161
+ public void Two_bytes()
40
162
  {
41
- Assert.Equal(new[] { 0x81u, 0x80u, 0x80u, 0x80u, 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0x10000000u }));
42
- Assert.Equal(new[] { 0x8fu, 0xf8u, 0x80u, 0x80u, 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0xff000000u }));
43
- Assert.Equal(new[] { 0x8fu, 0xffu, 0xffu, 0xffu, 0x7fu }, VariableLengthQuantity.ToBytes(new[] { 0xffffffffu }));
163
+ var integers = new[] { 0xC0u, 0x0u };
164
+ var expected = new[] { 0x2000u };
165
+ Assert.Equal(expected, VariableLengthQuantity.Decode(integers));
44
166
  }
45
167
 
46
168
  [Fact(Skip = "Remove to run test")]
47
- public void From_bytes()
169
+ public void Three_bytes()
48
170
  {
49
- Assert.Equal(new[] { 0x7fu }, VariableLengthQuantity.FromBytes(new[] { 0x7fu }));
50
- Assert.Equal(new[] { 0x2000u }, VariableLengthQuantity.FromBytes(new[] { 0xc0u, 0x00u }));
51
- Assert.Equal(new[] { 0x1fffffu }, VariableLengthQuantity.FromBytes(new[] { 0xffu, 0xffu, 0x7fu }));
52
- Assert.Equal(new[] { 0x200000u }, VariableLengthQuantity.FromBytes(new[] { 0x81u, 0x80u, 0x80u, 0x00u }));
53
- Assert.Equal(new[] { 0xffffffffu }, VariableLengthQuantity.FromBytes(new[] { 0x8fu, 0xffu, 0xffu, 0xffu, 0x7fu }));
171
+ var integers = new[] { 0xFFu, 0xFFu, 0x7Fu };
172
+ var expected = new[] { 0x1FFFFFu };
173
+ Assert.Equal(expected, VariableLengthQuantity.Decode(integers));
54
174
  }
55
175
 
56
176
  [Fact(Skip = "Remove to run test")]
57
- public void To_bytes_multiple_values()
177
+ public void Four_bytes()
58
178
  {
59
- Assert.Equal(new[] { 0x40u, 0x7fu }, VariableLengthQuantity.ToBytes(new[] { 0x40u, 0x7fu }));
60
- Assert.Equal(new[] { 0x81u, 0x80u, 0x00u, 0xc8u, 0xe8u, 0x56u }, VariableLengthQuantity.ToBytes(new[] { 0x4000u, 0x123456u }));
61
- Assert.Equal(new[] { 0xc0u, 0x00u, 0xc8u, 0xe8u, 0x56u, 0xffu, 0xffu, 0xffu, 0x7fu, 0x00u, 0xffu, 0x7fu, 0x81u, 0x80u, 0x00u }, VariableLengthQuantity.ToBytes(new[] { 0x2000u, 0x123456u, 0x0fffffffu, 0x00u, 0x3fffu, 0x4000u }));
179
+ var integers = new[] { 0x81u, 0x80u, 0x80u, 0x0u };
180
+ var expected = new[] { 0x200000u };
181
+ Assert.Equal(expected, VariableLengthQuantity.Decode(integers));
62
182
  }
63
183
 
64
184
  [Fact(Skip = "Remove to run test")]
65
- public void From_bytes_multiple_values()
185
+ public void Maximum_32_bit_integer()
66
186
  {
67
- Assert.Equal(new[] { 0x2000u, 0x123456u, 0x0fffffffu, 0x00u, 0x3fffu, 0x4000u }, VariableLengthQuantity.FromBytes(new[] { 0xc0u, 0x00u, 0xc8u, 0xe8u, 0x56u, 0xffu, 0xffu, 0xffu, 0x7fu, 0x00u, 0xffu, 0x7fu, 0x81u, 0x80u, 0x00u }));
187
+ var integers = new[] { 0x8Fu, 0xFFu, 0xFFu, 0xFFu, 0x7Fu };
188
+ var expected = new[] { 0xFFFFFFFFu };
189
+ Assert.Equal(expected, VariableLengthQuantity.Decode(integers));
68
190
  }
69
191
 
70
192
  [Fact(Skip = "Remove to run test")]
71
- public void Incomplete_byte_sequence()
193
+ public void Incomplete_sequence_causes_error()
72
194
  {
73
- Assert.Throws<InvalidOperationException>(() => VariableLengthQuantity.FromBytes(new[] { 0xffu }));
195
+ var integers = new[] { 0xFFu };
196
+ Assert.Throws<InvalidOperationException>(() => VariableLengthQuantity.Decode(integers));
74
197
  }
75
198
 
76
199
  [Fact(Skip = "Remove to run test")]
77
- public void Overflow()
200
+ public void Incomplete_sequence_causes_error_even_if_value_is_zero()
78
201
  {
79
- Assert.Throws<InvalidOperationException>(() => VariableLengthQuantity.FromBytes(new[] { 0xffu, 0xffu, 0xffu, 0xffu, 0x7fu }));
202
+ var integers = new[] { 0x80u };
203
+ Assert.Throws<InvalidOperationException>(() => VariableLengthQuantity.Decode(integers));
80
204
  }
81
205
 
82
206
  [Fact(Skip = "Remove to run test")]
83
- public void Chained_execution_is_identity()
207
+ public void Multiple_values()
84
208
  {
85
- var test = new[] { 0xf2u, 0xf6u, 0x96u, 0x9cu, 0x3bu, 0x39u, 0x2eu, 0x30u, 0xb3u, 0x24u };
86
- Assert.Equal(test, VariableLengthQuantity.FromBytes(VariableLengthQuantity.ToBytes(test)));
209
+ var integers = new[] { 0xC0u, 0x0u, 0xC8u, 0xE8u, 0x56u, 0xFFu, 0xFFu, 0xFFu, 0x7Fu, 0x0u, 0xFFu, 0x7Fu, 0x81u, 0x80u, 0x0u };
210
+ var expected = new[] { 0x2000u, 0x123456u, 0xFFFFFFFu, 0x0u, 0x3FFFu, 0x4000u };
211
+ Assert.Equal(expected, VariableLengthQuantity.Decode(integers));
87
212
  }
88
213
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  public static class WordCount
6
6
  {
7
- public static IDictionary<string, int> Countwords(string phrase)
7
+ public static IDictionary<string, int> CountWords(string phrase)
8
8
  {
9
9
  if (phrase == null) throw new ArgumentNullException("phrase");
10
10
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  public static class WordCount
5
5
  {
6
- public static IDictionary<string, int> Countwords(string phrase)
6
+ public static IDictionary<string, int> CountWords(string phrase)
7
7
  {
8
8
  throw new NotImplementedException("You need to implement this function.");
9
9
  }
@@ -1,4 +1,4 @@
1
- // This file was auto-generated based on version 1.0.0 of the canonical data.
1
+ // This file was auto-generated based on version 1.2.0 of the canonical data.
2
2
 
3
3
  using Xunit;
4
4
  using System.Collections.Generic;
@@ -8,7 +8,7 @@ public class WordCountTest
8
8
  [Fact]
9
9
  public void Count_one_word()
10
10
  {
11
- var actual = WordCount.Countwords("word");
11
+ var actual = WordCount.CountWords("word");
12
12
  var expected = new Dictionary<string, int>
13
13
  {
14
14
  ["word"] = 1
@@ -19,7 +19,7 @@ public void Count_one_word()
19
19
  [Fact(Skip = "Remove to run test")]
20
20
  public void Count_one_of_each_word()
21
21
  {
22
- var actual = WordCount.Countwords("one of each");
22
+ var actual = WordCount.CountWords("one of each");
23
23
  var expected = new Dictionary<string, int>
24
24
  {
25
25
  ["one"] = 1,
@@ -32,7 +32,7 @@ public void Count_one_of_each_word()
32
32
  [Fact(Skip = "Remove to run test")]
33
33
  public void Multiple_occurrences_of_a_word()
34
34
  {
35
- var actual = WordCount.Countwords("one fish two fish red fish blue fish");
35
+ var actual = WordCount.CountWords("one fish two fish red fish blue fish");
36
36
  var expected = new Dictionary<string, int>
37
37
  {
38
38
  ["one"] = 1,
@@ -47,7 +47,7 @@ public void Multiple_occurrences_of_a_word()
47
47
  [Fact(Skip = "Remove to run test")]
48
48
  public void Handles_cramped_lists()
49
49
  {
50
- var actual = WordCount.Countwords("one,two,three");
50
+ var actual = WordCount.CountWords("one,two,three");
51
51
  var expected = new Dictionary<string, int>
52
52
  {
53
53
  ["one"] = 1,
@@ -60,7 +60,7 @@ public void Handles_cramped_lists()
60
60
  [Fact(Skip = "Remove to run test")]
61
61
  public void Handles_expanded_lists()
62
62
  {
63
- var actual = WordCount.Countwords("one,\ntwo,\nthree");
63
+ var actual = WordCount.CountWords("one,\ntwo,\nthree");
64
64
  var expected = new Dictionary<string, int>
65
65
  {
66
66
  ["one"] = 1,
@@ -73,7 +73,7 @@ public void Handles_expanded_lists()
73
73
  [Fact(Skip = "Remove to run test")]
74
74
  public void Ignore_punctuation()
75
75
  {
76
- var actual = WordCount.Countwords("car: carpet as java: javascript!!&@$%^&");
76
+ var actual = WordCount.CountWords("car: carpet as java: javascript!!&@$%^&");
77
77
  var expected = new Dictionary<string, int>
78
78
  {
79
79
  ["car"] = 1,
@@ -88,7 +88,7 @@ public void Ignore_punctuation()
88
88
  [Fact(Skip = "Remove to run test")]
89
89
  public void Include_numbers()
90
90
  {
91
- var actual = WordCount.Countwords("testing, 1, 2 testing");
91
+ var actual = WordCount.CountWords("testing, 1, 2 testing");
92
92
  var expected = new Dictionary<string, int>
93
93
  {
94
94
  ["testing"] = 2,
@@ -101,7 +101,7 @@ public void Include_numbers()
101
101
  [Fact(Skip = "Remove to run test")]
102
102
  public void Normalize_case()
103
103
  {
104
- var actual = WordCount.Countwords("go Go GO Stop stop");
104
+ var actual = WordCount.CountWords("go Go GO Stop stop");
105
105
  var expected = new Dictionary<string, int>
106
106
  {
107
107
  ["go"] = 3,
@@ -113,7 +113,7 @@ public void Normalize_case()
113
113
  [Fact(Skip = "Remove to run test")]
114
114
  public void With_apostrophes()
115
115
  {
116
- var actual = WordCount.Countwords("First: don't laugh. Then: don't cry.");
116
+ var actual = WordCount.CountWords("First: don't laugh. Then: don't cry.");
117
117
  var expected = new Dictionary<string, int>
118
118
  {
119
119
  ["first"] = 1,
@@ -128,7 +128,7 @@ public void With_apostrophes()
128
128
  [Fact(Skip = "Remove to run test")]
129
129
  public void With_quotations()
130
130
  {
131
- var actual = WordCount.Countwords("Joe can't tell between 'large' and large.");
131
+ var actual = WordCount.CountWords("Joe can't tell between 'large' and large.");
132
132
  var expected = new Dictionary<string, int>
133
133
  {
134
134
  ["joe"] = 1,
@@ -144,7 +144,7 @@ public void With_quotations()
144
144
  [Fact(Skip = "Remove to run test")]
145
145
  public void Multiple_spaces_not_detected_as_a_word()
146
146
  {
147
- var actual = WordCount.Countwords(" multiple whitespaces");
147
+ var actual = WordCount.CountWords(" multiple whitespaces");
148
148
  var expected = new Dictionary<string, int>
149
149
  {
150
150
  ["multiple"] = 1,
@@ -1,4 +1,4 @@
1
- // This file was auto-generated based on version 1.0.0 of the canonical data.
1
+ // This file was auto-generated based on version 1.1.0 of the canonical data.
2
2
 
3
3
  using Xunit;
4
4
  using System;
@@ -38,11 +38,8 @@ public static int Score(int[] dice, YachtCategory category)
38
38
 
39
39
  //Full House: Three of one number and two of another. Sum of all dice.
40
40
  case YachtCategory.FullHouse:
41
- {
42
- var testHashSet = new HashSet<int>();
43
- dice.ToList().ForEach(x => testHashSet.Add(x));
44
- return (testHashSet.Count() == 2) ? dice.Sum() : 0;
45
- }
41
+ var diceByValue = dice.ToLookup(x => x);
42
+ return diceByValue.Count == 2 && diceByValue.First().Count() == 2 || diceByValue.First().Count() == 3 ? dice.Sum() : 0;
46
43
  //Four-Of-A-Kind: At least four dice showing the same face. Sum of those four dice.
47
44
  case YachtCategory.FourOfAKind:
48
45
  var testDict = new Dictionary<int, int>();