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.3.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.2.0 of the canonical data.
1
+ // This file was auto-generated based on version 1.3.0 of the canonical data.
2
2
 
3
3
  using Xunit;
4
4
  using System;
@@ -1,4 +1,4 @@
1
- // This file was auto-generated based on version 1.0.1 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;
@@ -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
  using System;
@@ -76,16 +76,30 @@ public void Invalid_with_punctuations()
76
76
  }
77
77
 
78
78
  [Fact(Skip = "Remove to run test")]
79
- public void Invalid_if_area_code_does_not_start_with_2_9()
79
+ public void Invalid_if_area_code_starts_with_0()
80
+ {
81
+ var phrase = "(023) 456-7890";
82
+ Assert.Throws<ArgumentException>(() => PhoneNumber.Clean(phrase));
83
+ }
84
+
85
+ [Fact(Skip = "Remove to run test")]
86
+ public void Invalid_if_area_code_starts_with_1()
80
87
  {
81
88
  var phrase = "(123) 456-7890";
82
89
  Assert.Throws<ArgumentException>(() => PhoneNumber.Clean(phrase));
83
90
  }
84
91
 
85
92
  [Fact(Skip = "Remove to run test")]
86
- public void Invalid_if_exchange_code_does_not_start_with_2_9()
93
+ public void Invalid_if_exchange_code_starts_with_0()
87
94
  {
88
95
  var phrase = "(223) 056-7890";
89
96
  Assert.Throws<ArgumentException>(() => PhoneNumber.Clean(phrase));
90
97
  }
98
+
99
+ [Fact(Skip = "Remove to run test")]
100
+ public void Invalid_if_exchange_code_starts_with_1()
101
+ {
102
+ var phrase = "(223) 156-7890";
103
+ Assert.Throws<ArgumentException>(() => PhoneNumber.Clean(phrase));
104
+ }
91
105
  }
@@ -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
 
@@ -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
 
@@ -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
 
@@ -1,15 +1,15 @@
1
1
  using System;
2
2
  using System.Collections.Generic;
3
3
 
4
- public class ProteinTranslation
4
+ public static class ProteinTranslation
5
5
  {
6
- public static string[] Translate(string codon)
6
+ public static string[] Proteins(string strand)
7
7
  {
8
8
  var results = new List<string>();
9
9
 
10
- for (int i = 0; i < codon.Length / 3; i++)
10
+ for (int i = 0; i < strand.Length / 3; i++)
11
11
  {
12
- var protein = ConvertToProtein(codon.Substring(3 * i, 3));
12
+ var protein = ConvertToProtein(strand.Substring(3 * i, 3));
13
13
 
14
14
  if (protein == "STOP")
15
15
  {
@@ -2,7 +2,7 @@
2
2
 
3
3
  public static class ProteinTranslation
4
4
  {
5
- public static string[] Translate(string codon)
5
+ public static string[] Proteins(string strand)
6
6
  {
7
7
  throw new NotImplementedException();
8
8
  }
@@ -1,85 +1,144 @@
1
- using System;
1
+ // This file was auto-generated based on version 1.1.0 of the canonical data.
2
+
2
3
  using Xunit;
3
4
 
4
5
  public class ProteinTranslationTest
5
6
  {
6
- [Theory]
7
- [InlineData("AUG")]
8
- public void Identifies_methionine_codons(string codon)
7
+ [Fact]
8
+ public void Methionine_rna_sequence()
9
+ {
10
+ Assert.Equal(new[] { "Methionine" }, ProteinTranslation.Proteins("AUG"));
11
+ }
12
+
13
+ [Fact(Skip = "Remove to run test")]
14
+ public void Phenylalanine_rna_sequence_1()
15
+ {
16
+ Assert.Equal(new[] { "Phenylalanine" }, ProteinTranslation.Proteins("UUU"));
17
+ }
18
+
19
+ [Fact(Skip = "Remove to run test")]
20
+ public void Phenylalanine_rna_sequence_2()
21
+ {
22
+ Assert.Equal(new[] { "Phenylalanine" }, ProteinTranslation.Proteins("UUC"));
23
+ }
24
+
25
+ [Fact(Skip = "Remove to run test")]
26
+ public void Leucine_rna_sequence_1()
27
+ {
28
+ Assert.Equal(new[] { "Leucine" }, ProteinTranslation.Proteins("UUA"));
29
+ }
30
+
31
+ [Fact(Skip = "Remove to run test")]
32
+ public void Leucine_rna_sequence_2()
33
+ {
34
+ Assert.Equal(new[] { "Leucine" }, ProteinTranslation.Proteins("UUG"));
35
+ }
36
+
37
+ [Fact(Skip = "Remove to run test")]
38
+ public void Serine_rna_sequence_1()
9
39
  {
10
- Assert.Equal(new[] { "Methionine" }, ProteinTranslation.Translate(codon));
40
+ Assert.Equal(new[] { "Serine" }, ProteinTranslation.Proteins("UCU"));
11
41
  }
12
42
 
13
- [Theory(Skip = "Remove to run test")]
14
- [InlineData("UUU")]
15
- [InlineData("UUC")]
16
- public void Identifies_phenylalanine_codons(string codon)
43
+ [Fact(Skip = "Remove to run test")]
44
+ public void Serine_rna_sequence_2()
17
45
  {
18
- Assert.Equal(new[] { "Phenylalanine" }, ProteinTranslation.Translate(codon));
46
+ Assert.Equal(new[] { "Serine" }, ProteinTranslation.Proteins("UCC"));
19
47
  }
20
48
 
21
- [Theory(Skip = "Remove to run test")]
22
- [InlineData("UUA")]
23
- [InlineData("UUG")]
24
- public void Identifies_leucine_codons(string codon)
49
+ [Fact(Skip = "Remove to run test")]
50
+ public void Serine_rna_sequence_3()
25
51
  {
26
- Assert.Equal(new[] { "Leucine" }, ProteinTranslation.Translate(codon));
52
+ Assert.Equal(new[] { "Serine" }, ProteinTranslation.Proteins("UCA"));
27
53
  }
28
54
 
29
- [Theory(Skip = "Remove to run test")]
30
- [InlineData("UCU")]
31
- [InlineData("UCC")]
32
- [InlineData("UCA")]
33
- [InlineData("UCG")]
34
- public void Identifies_serine_codons(string codon)
55
+ [Fact(Skip = "Remove to run test")]
56
+ public void Serine_rna_sequence_4()
35
57
  {
36
- Assert.Equal(new[] { "Serine" }, ProteinTranslation.Translate(codon));
58
+ Assert.Equal(new[] { "Serine" }, ProteinTranslation.Proteins("UCG"));
37
59
  }
38
60
 
39
- [Theory(Skip = "Remove to run test")]
40
- [InlineData("UAU")]
41
- [InlineData("UAC")]
42
- public void Identifies_tyrosine_codons(string codon)
61
+ [Fact(Skip = "Remove to run test")]
62
+ public void Tyrosine_rna_sequence_1()
43
63
  {
44
- Assert.Equal(new[] { "Tyrosine" }, ProteinTranslation.Translate(codon));
64
+ Assert.Equal(new[] { "Tyrosine" }, ProteinTranslation.Proteins("UAU"));
45
65
  }
46
66
 
47
- [Theory(Skip = "Remove to run test")]
48
- [InlineData("UGU")]
49
- [InlineData("UGC")]
50
- public void Identifies_cysteine_codons(string codon)
67
+ [Fact(Skip = "Remove to run test")]
68
+ public void Tyrosine_rna_sequence_2()
51
69
  {
52
- Assert.Equal(new[] { "Cysteine" }, ProteinTranslation.Translate(codon));
70
+ Assert.Equal(new[] { "Tyrosine" }, ProteinTranslation.Proteins("UAC"));
53
71
  }
54
72
 
55
- [Theory(Skip = "Remove to run test")]
56
- [InlineData("UGG")]
57
- public void Identifies_tryptophan_codons(string codon)
73
+ [Fact(Skip = "Remove to run test")]
74
+ public void Cysteine_rna_sequence_1()
75
+ {
76
+ Assert.Equal(new[] { "Cysteine" }, ProteinTranslation.Proteins("UGU"));
77
+ }
78
+
79
+ [Fact(Skip = "Remove to run test")]
80
+ public void Cysteine_rna_sequence_2()
81
+ {
82
+ Assert.Equal(new[] { "Cysteine" }, ProteinTranslation.Proteins("UGC"));
83
+ }
84
+
85
+ [Fact(Skip = "Remove to run test")]
86
+ public void Tryptophan_rna_sequence()
87
+ {
88
+ Assert.Equal(new[] { "Tryptophan" }, ProteinTranslation.Proteins("UGG"));
89
+ }
90
+
91
+ [Fact(Skip = "Remove to run test")]
92
+ public void Stop_codon_rna_sequence_1()
93
+ {
94
+ Assert.Empty(ProteinTranslation.Proteins("UAA"));
95
+ }
96
+
97
+ [Fact(Skip = "Remove to run test")]
98
+ public void Stop_codon_rna_sequence_2()
99
+ {
100
+ Assert.Empty(ProteinTranslation.Proteins("UAG"));
101
+ }
102
+
103
+ [Fact(Skip = "Remove to run test")]
104
+ public void Stop_codon_rna_sequence_3()
105
+ {
106
+ Assert.Empty(ProteinTranslation.Proteins("UGA"));
107
+ }
108
+
109
+ [Fact(Skip = "Remove to run test")]
110
+ public void Translate_rna_strand_into_correct_protein_list()
111
+ {
112
+ Assert.Equal(new[] { "Methionine", "Phenylalanine", "Tryptophan" }, ProteinTranslation.Proteins("AUGUUUUGG"));
113
+ }
114
+
115
+ [Fact(Skip = "Remove to run test")]
116
+ public void Translation_stops_if_stop_codon_at_beginning_of_sequence()
58
117
  {
59
- Assert.Equal(new[] { "Tryptophan" }, ProteinTranslation.Translate(codon));
118
+ Assert.Empty(ProteinTranslation.Proteins("UAGUGG"));
60
119
  }
61
120
 
62
121
  [Fact(Skip = "Remove to run test")]
63
- public void Translates_rna_strand_into_correct_protein()
122
+ public void Translation_stops_if_stop_codon_at_end_of_two_codon_sequence()
64
123
  {
65
- Assert.Equal(new[] { "Methionine", "Phenylalanine", "Tryptophan" }, ProteinTranslation.Translate("AUGUUUUGG"));
124
+ Assert.Equal(new[] { "Tryptophan" }, ProteinTranslation.Proteins("UGGUAG"));
66
125
  }
67
126
 
68
127
  [Fact(Skip = "Remove to run test")]
69
- public void Stops_translation_if_stop_codon_present()
128
+ public void Translation_stops_if_stop_codon_at_end_of_three_codon_sequence()
70
129
  {
71
- Assert.Equal(new[] { "Methionine", "Phenylalanine" }, ProteinTranslation.Translate("AUGUUUUAA"));
130
+ Assert.Equal(new[] { "Methionine", "Phenylalanine" }, ProteinTranslation.Proteins("AUGUUUUAA"));
72
131
  }
73
132
 
74
133
  [Fact(Skip = "Remove to run test")]
75
- public void Stops_translation_of_longer_strand()
134
+ public void Translation_stops_if_stop_codon_in_middle_of_three_codon_sequence()
76
135
  {
77
- Assert.Equal(new[] { "Tryptophan", "Cysteine", "Tyrosine" }, ProteinTranslation.Translate("UGGUGUUAUUAAUGGUUU"));
136
+ Assert.Equal(new[] { "Tryptophan" }, ProteinTranslation.Proteins("UGGUAGUGG"));
78
137
  }
79
138
 
80
139
  [Fact(Skip = "Remove to run test")]
81
- public void Throws_for_invalid_codons()
140
+ public void Translation_stops_if_stop_codon_in_middle_of_six_codon_sequence()
82
141
  {
83
- Assert.Throws<Exception>(() => ProteinTranslation.Translate("CARROT"));
142
+ Assert.Equal(new[] { "Tryptophan", "Cysteine", "Tyrosine" }, ProteinTranslation.Proteins("UGGUGUUAUUAAUGGUUU"));
84
143
  }
85
- }
144
+ }
@@ -7,36 +7,68 @@ public class ProverbTest
7
7
  [Fact]
8
8
  public void Zero_pieces()
9
9
  {
10
- Assert.Empty(Proverb.Recite(new string[] { }));
10
+ Assert.Empty(Proverb.Recite(new string[0]));
11
11
  }
12
12
 
13
13
  [Fact(Skip = "Remove to run test")]
14
14
  public void One_piece()
15
15
  {
16
- Assert.Equal(new[] { "And all for the want of a nail." }, Proverb.Recite(new[] { "nail" }));
16
+ var expected = new[]
17
+ {
18
+ "And all for the want of a nail."
19
+ };
20
+ Assert.Equal(expected, Proverb.Recite(new[] { "nail" }));
17
21
  }
18
22
 
19
23
  [Fact(Skip = "Remove to run test")]
20
24
  public void Two_pieces()
21
25
  {
22
- Assert.Equal(new[] { "For want of a nail the shoe was lost.", "And all for the want of a nail." }, Proverb.Recite(new[] { "nail", "shoe" }));
26
+ var expected = new[]
27
+ {
28
+ "For want of a nail the shoe was lost.",
29
+ "And all for the want of a nail."
30
+ };
31
+ Assert.Equal(expected, Proverb.Recite(new[] { "nail", "shoe" }));
23
32
  }
24
33
 
25
34
  [Fact(Skip = "Remove to run test")]
26
35
  public void Three_pieces()
27
36
  {
28
- Assert.Equal(new[] { "For want of a nail the shoe was lost.", "For want of a shoe the horse was lost.", "And all for the want of a nail." }, Proverb.Recite(new[] { "nail", "shoe", "horse" }));
37
+ var expected = new[]
38
+ {
39
+ "For want of a nail the shoe was lost.",
40
+ "For want of a shoe the horse was lost.",
41
+ "And all for the want of a nail."
42
+ };
43
+ Assert.Equal(expected, Proverb.Recite(new[] { "nail", "shoe", "horse" }));
29
44
  }
30
45
 
31
46
  [Fact(Skip = "Remove to run test")]
32
47
  public void Full_proverb()
33
48
  {
34
- Assert.Equal(new[] { "For want of a nail the shoe was lost.", "For want of a shoe the horse was lost.", "For want of a horse the rider was lost.", "For want of a rider the message was lost.", "For want of a message the battle was lost.", "For want of a battle the kingdom was lost.", "And all for the want of a nail." }, Proverb.Recite(new[] { "nail", "shoe", "horse", "rider", "message", "battle", "kingdom" }));
49
+ var expected = new[]
50
+ {
51
+ "For want of a nail the shoe was lost.",
52
+ "For want of a shoe the horse was lost.",
53
+ "For want of a horse the rider was lost.",
54
+ "For want of a rider the message was lost.",
55
+ "For want of a message the battle was lost.",
56
+ "For want of a battle the kingdom was lost.",
57
+ "And all for the want of a nail."
58
+ };
59
+ Assert.Equal(expected, Proverb.Recite(new[] { "nail", "shoe", "horse", "rider", "message", "battle", "kingdom" }));
35
60
  }
36
61
 
37
62
  [Fact(Skip = "Remove to run test")]
38
63
  public void Four_pieces_modernized()
39
64
  {
40
- Assert.Equal(new[] { "For want of a pin the gun was lost.", "For want of a gun the soldier was lost.", "For want of a soldier the battle was lost.", "And all for the want of a pin." }, Proverb.Recite(new[] { "pin", "gun", "soldier", "battle" }));
65
+ var expected = new[]
66
+ {
67
+ "For want of a pin the gun was lost.",
68
+ "For want of a gun the soldier was lost.",
69
+ "For want of a soldier the battle was lost.",
70
+ "And all for the want of a pin."
71
+ };
72
+ Assert.Equal(expected, Proverb.Recite(new[] { "pin", "gun", "soldier", "battle" }));
41
73
  }
42
74
  }
@@ -1,4 +1,4 @@
1
- // This file was auto-generated based on version 2.0.0 of the canonical data.
1
+ // This file was auto-generated based on version 2.1.0 of the canonical data.
2
2
 
3
3
  using Xunit;
4
4
  using System;
@@ -1,4 +1,4 @@
1
- // This file was auto-generated based on version 1.0.1 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
 
@@ -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
 
@@ -1,44 +1,52 @@
1
- using Xunit;
1
+ // This file was auto-generated based on version 1.1.0 of the canonical data.
2
+
3
+ using Xunit;
2
4
 
3
5
  public class RectanglesTest
4
6
  {
5
7
  [Fact]
6
8
  public void No_rows()
7
9
  {
8
- var input = new string[0];
9
- Assert.Equal(0, Rectangles.Count(input));
10
+ var strings = new string[0];
11
+ Assert.Equal(0, Rectangles.Count(strings));
10
12
  }
11
13
 
12
14
  [Fact(Skip = "Remove to run test")]
13
15
  public void No_columns()
14
16
  {
15
- var input = new[] { "" };
16
- Assert.Equal(0, Rectangles.Count(input));
17
+ var strings = new[]
18
+ {
19
+ ""
20
+ };
21
+ Assert.Equal(0, Rectangles.Count(strings));
17
22
  }
18
23
 
19
24
  [Fact(Skip = "Remove to run test")]
20
25
  public void No_rectangles()
21
26
  {
22
- var input = new[] { " " };
23
- Assert.Equal(0, Rectangles.Count(input));
27
+ var strings = new[]
28
+ {
29
+ " "
30
+ };
31
+ Assert.Equal(0, Rectangles.Count(strings));
24
32
  }
25
33
 
26
34
  [Fact(Skip = "Remove to run test")]
27
35
  public void One_rectangle()
28
36
  {
29
- var input = new[]
37
+ var strings = new[]
30
38
  {
31
39
  "+-+",
32
40
  "| |",
33
41
  "+-+"
34
42
  };
35
- Assert.Equal(1, Rectangles.Count(input));
43
+ Assert.Equal(1, Rectangles.Count(strings));
36
44
  }
37
45
 
38
46
  [Fact(Skip = "Remove to run test")]
39
47
  public void Two_rectangles_without_shared_parts()
40
48
  {
41
- var input = new[]
49
+ var strings = new[]
42
50
  {
43
51
  " +-+",
44
52
  " | |",
@@ -46,13 +54,13 @@ public void Two_rectangles_without_shared_parts()
46
54
  "| | ",
47
55
  "+-+ "
48
56
  };
49
- Assert.Equal(2, Rectangles.Count(input));
57
+ Assert.Equal(2, Rectangles.Count(strings));
50
58
  }
51
59
 
52
60
  [Fact(Skip = "Remove to run test")]
53
61
  public void Five_rectangles_with_shared_parts()
54
62
  {
55
- var input = new[]
63
+ var strings = new[]
56
64
  {
57
65
  " +-+",
58
66
  " | |",
@@ -60,13 +68,47 @@ public void Five_rectangles_with_shared_parts()
60
68
  "| | |",
61
69
  "+-+-+"
62
70
  };
63
- Assert.Equal(5, Rectangles.Count(input));
71
+ Assert.Equal(5, Rectangles.Count(strings));
72
+ }
73
+
74
+ [Fact(Skip = "Remove to run test")]
75
+ public void Rectangle_of_height_1_is_counted()
76
+ {
77
+ var strings = new[]
78
+ {
79
+ "+--+",
80
+ "+--+"
81
+ };
82
+ Assert.Equal(1, Rectangles.Count(strings));
83
+ }
84
+
85
+ [Fact(Skip = "Remove to run test")]
86
+ public void Rectangle_of_width_1_is_counted()
87
+ {
88
+ var strings = new[]
89
+ {
90
+ "++",
91
+ "||",
92
+ "++"
93
+ };
94
+ Assert.Equal(1, Rectangles.Count(strings));
95
+ }
96
+
97
+ [Fact(Skip = "Remove to run test")]
98
+ public void Number_1x1_square_is_counted()
99
+ {
100
+ var strings = new[]
101
+ {
102
+ "++",
103
+ "++"
104
+ };
105
+ Assert.Equal(1, Rectangles.Count(strings));
64
106
  }
65
107
 
66
108
  [Fact(Skip = "Remove to run test")]
67
109
  public void Only_complete_rectangles_are_counted()
68
110
  {
69
- var input = new[]
111
+ var strings = new[]
70
112
  {
71
113
  " +-+",
72
114
  " |",
@@ -74,13 +116,13 @@ public void Only_complete_rectangles_are_counted()
74
116
  "| | -",
75
117
  "+-+-+"
76
118
  };
77
- Assert.Equal(1, Rectangles.Count(input));
119
+ Assert.Equal(1, Rectangles.Count(strings));
78
120
  }
79
121
 
80
122
  [Fact(Skip = "Remove to run test")]
81
123
  public void Rectangles_can_be_of_different_sizes()
82
124
  {
83
- var input = new[]
125
+ var strings = new[]
84
126
  {
85
127
  "+------+----+",
86
128
  "| | |",
@@ -88,13 +130,13 @@ public void Rectangles_can_be_of_different_sizes()
88
130
  "| | |",
89
131
  "+---+-------+"
90
132
  };
91
- Assert.Equal(3, Rectangles.Count(input));
133
+ Assert.Equal(3, Rectangles.Count(strings));
92
134
  }
93
135
 
94
136
  [Fact(Skip = "Remove to run test")]
95
137
  public void Corner_is_required_for_a_rectangle_to_be_complete()
96
138
  {
97
- var input = new[]
139
+ var strings = new[]
98
140
  {
99
141
  "+------+----+",
100
142
  "| | |",
@@ -102,13 +144,13 @@ public void Corner_is_required_for_a_rectangle_to_be_complete()
102
144
  "| | |",
103
145
  "+---+-------+"
104
146
  };
105
- Assert.Equal(2, Rectangles.Count(input));
147
+ Assert.Equal(2, Rectangles.Count(strings));
106
148
  }
107
149
 
108
150
  [Fact(Skip = "Remove to run test")]
109
151
  public void Large_input_with_many_rectangles()
110
152
  {
111
- var input = new[]
153
+ var strings = new[]
112
154
  {
113
155
  "+---+--+----+",
114
156
  "| +--+----+",
@@ -119,6 +161,6 @@ public void Large_input_with_many_rectangles()
119
161
  "+------+ | |",
120
162
  " +-+"
121
163
  };
122
- Assert.Equal(60, Rectangles.Count(input));
164
+ Assert.Equal(60, Rectangles.Count(strings));
123
165
  }
124
166
  }