trackler 2.2.1.44 → 2.2.1.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/problem-specifications/exercises/isbn-verifier/canonical-data.json +88 -0
- data/problem-specifications/exercises/isbn-verifier/description.md +35 -0
- data/problem-specifications/exercises/isbn-verifier/metadata.yml +4 -0
- data/problem-specifications/exercises/robot-simulator/canonical-data.json +125 -32
- data/problem-specifications/exercises/sum-of-multiples/description.md +0 -3
- data/problem-specifications/exercises/two-bucket/canonical-data.json +3 -3
- data/tracks/c/config.json +235 -237
- data/tracks/c/exercises/acronym/README.md +0 -1
- data/tracks/c/exercises/all-your-base/README.md +1 -1
- data/tracks/c/exercises/allergies/README.md +0 -1
- data/tracks/c/exercises/atbash-cipher/README.md +2 -1
- data/tracks/c/exercises/beer-song/README.md +1 -1
- data/tracks/c/exercises/binary/README.md +2 -0
- data/tracks/c/exercises/grains/README.md +0 -1
- data/tracks/c/exercises/isogram/README.md +2 -1
- data/tracks/c/exercises/leap/README.md +1 -1
- data/tracks/c/exercises/meetup/README.md +1 -2
- data/tracks/c/exercises/nucleotide-count/README.md +8 -22
- data/tracks/c/exercises/palindrome-products/README.md +12 -6
- data/tracks/c/exercises/pangram/README.md +1 -1
- data/tracks/c/exercises/pascals-triangle/README.md +1 -1
- data/tracks/c/exercises/perfect-numbers/README.md +2 -2
- data/tracks/c/exercises/phone-number/README.md +3 -2
- data/tracks/c/exercises/roman-numerals/README.md +1 -1
- data/tracks/c/exercises/scrabble-score/README.md +3 -1
- data/tracks/c/exercises/space-age/README.md +2 -1
- data/tracks/c/exercises/triangle/README.md +9 -6
- data/tracks/c/exercises/word-count/README.md +1 -2
- data/tracks/csharp/exercises/accumulate/Accumulate.csproj +2 -2
- data/tracks/csharp/exercises/acronym/Acronym.csproj +2 -2
- data/tracks/csharp/exercises/all-your-base/AllYourBase.csproj +2 -2
- data/tracks/csharp/exercises/allergies/Allergies.csproj +2 -2
- data/tracks/csharp/exercises/alphametics/Alphametics.csproj +2 -2
- data/tracks/csharp/exercises/anagram/Anagram.csproj +2 -2
- data/tracks/csharp/exercises/atbash-cipher/AtbashCipher.csproj +2 -2
- data/tracks/csharp/exercises/bank-account/BankAccount.csproj +2 -2
- data/tracks/csharp/exercises/beer-song/BeerSong.csproj +2 -2
- data/tracks/csharp/exercises/binary-search/BinarySearch.csproj +2 -2
- data/tracks/csharp/exercises/binary-search-tree/BinarySearchTree.csproj +2 -2
- data/tracks/csharp/exercises/bob/Bob.csproj +2 -2
- data/tracks/csharp/exercises/book-store/BookStore.csproj +2 -2
- data/tracks/csharp/exercises/bowling/Bowling.csproj +2 -2
- data/tracks/csharp/exercises/bracket-push/BracketPush.csproj +2 -2
- data/tracks/csharp/exercises/change/Change.csproj +2 -2
- data/tracks/csharp/exercises/circular-buffer/CircularBuffer.csproj +2 -2
- data/tracks/csharp/exercises/clock/Clock.csproj +2 -2
- data/tracks/csharp/exercises/collatz-conjecture/CollatzConjecture.csproj +2 -2
- data/tracks/csharp/exercises/complex-numbers/ComplexNumbers.csproj +2 -2
- data/tracks/csharp/exercises/connect/Connect.cs +1 -1
- data/tracks/csharp/exercises/connect/Connect.csproj +2 -2
- data/tracks/csharp/exercises/connect/ConnectTest.cs +120 -85
- data/tracks/csharp/exercises/connect/Example.cs +11 -7
- data/tracks/csharp/exercises/crypto-square/CryptoSquare.csproj +2 -2
- data/tracks/csharp/exercises/custom-set/CustomSet.csproj +2 -2
- data/tracks/csharp/exercises/diamond/Diamond.csproj +2 -2
- data/tracks/csharp/exercises/difference-of-squares/DifferenceOfSquares.csproj +2 -2
- data/tracks/csharp/exercises/diffie-hellman/DiffieHellman.csproj +2 -2
- data/tracks/csharp/exercises/dominoes/Dominoes.csproj +2 -2
- data/tracks/csharp/exercises/dot-dsl/DotDsl.csproj +2 -2
- data/tracks/csharp/exercises/error-handling/ErrorHandling.csproj +2 -2
- data/tracks/csharp/exercises/etl/Etl.csproj +2 -2
- data/tracks/csharp/exercises/flatten-array/FlattenArray.csproj +2 -2
- data/tracks/csharp/exercises/food-chain/FoodChain.csproj +2 -2
- data/tracks/csharp/exercises/forth/Forth.csproj +2 -2
- data/tracks/csharp/exercises/gigasecond/Gigasecond.csproj +2 -2
- data/tracks/csharp/exercises/go-counting/GoCounting.csproj +2 -2
- data/tracks/csharp/exercises/grade-school/GradeSchool.csproj +2 -2
- data/tracks/csharp/exercises/grains/Grains.csproj +2 -2
- data/tracks/csharp/exercises/grep/Grep.csproj +2 -2
- data/tracks/csharp/exercises/hamming/Hamming.csproj +2 -2
- data/tracks/csharp/exercises/hangman/Hangman.csproj +2 -2
- data/tracks/csharp/exercises/hello-world/HelloWorld.csproj +2 -2
- data/tracks/csharp/exercises/house/House.csproj +2 -2
- data/tracks/csharp/exercises/isogram/Isogram.csproj +2 -2
- data/tracks/csharp/exercises/kindergarten-garden/KindergartenGarden.csproj +2 -2
- data/tracks/csharp/exercises/largest-series-product/LargestSeriesProduct.csproj +2 -2
- data/tracks/csharp/exercises/leap/Leap.csproj +2 -2
- data/tracks/csharp/exercises/ledger/Ledger.csproj +2 -2
- data/tracks/csharp/exercises/linked-list/LinkedList.csproj +2 -2
- data/tracks/csharp/exercises/list-ops/ListOps.csproj +2 -2
- data/tracks/csharp/exercises/luhn/Luhn.csproj +2 -2
- data/tracks/csharp/exercises/markdown/Markdown.csproj +2 -2
- data/tracks/csharp/exercises/matrix/Matrix.csproj +2 -2
- data/tracks/csharp/exercises/meetup/Meetup.csproj +2 -2
- data/tracks/csharp/exercises/minesweeper/Minesweeper.csproj +2 -2
- data/tracks/csharp/exercises/nth-prime/NthPrime.csproj +2 -2
- data/tracks/csharp/exercises/nucleotide-count/NucleotideCount.csproj +2 -2
- data/tracks/csharp/exercises/ocr-numbers/OcrNumbers.csproj +2 -2
- data/tracks/csharp/exercises/palindrome-products/PalindromeProducts.csproj +2 -2
- data/tracks/csharp/exercises/pangram/Pangram.csproj +2 -2
- data/tracks/csharp/exercises/parallel-letter-frequency/ParallelLetterFrequency.csproj +2 -2
- data/tracks/csharp/exercises/pascals-triangle/PascalsTriangle.csproj +2 -2
- data/tracks/csharp/exercises/perfect-numbers/PerfectNumbers.csproj +2 -2
- data/tracks/csharp/exercises/phone-number/PhoneNumber.csproj +2 -2
- data/tracks/csharp/exercises/pig-latin/PigLatin.csproj +2 -2
- data/tracks/csharp/exercises/poker/Poker.csproj +2 -2
- data/tracks/csharp/exercises/pov/Pov.csproj +2 -2
- data/tracks/csharp/exercises/prime-factors/PrimeFactors.csproj +2 -2
- data/tracks/csharp/exercises/protein-translation/ProteinTranslation.csproj +2 -2
- data/tracks/csharp/exercises/proverb/Proverb.csproj +2 -2
- data/tracks/csharp/exercises/pythagorean-triplet/PythagoreanTriplet.csproj +2 -2
- data/tracks/csharp/exercises/queen-attack/QueenAttack.csproj +2 -2
- data/tracks/csharp/exercises/rail-fence-cipher/RailFenceCipher.csproj +2 -2
- data/tracks/csharp/exercises/raindrops/Raindrops.csproj +2 -2
- data/tracks/csharp/exercises/react/React.csproj +2 -2
- data/tracks/csharp/exercises/rectangles/Rectangles.csproj +2 -2
- data/tracks/csharp/exercises/rna-transcription/RnaTranscription.csproj +2 -2
- data/tracks/csharp/exercises/robot-name/RobotName.csproj +2 -2
- data/tracks/csharp/exercises/robot-simulator/RobotSimulator.csproj +2 -2
- data/tracks/csharp/exercises/roman-numerals/RomanNumerals.csproj +2 -2
- data/tracks/csharp/exercises/rotational-cipher/RotationalCipher.csproj +2 -2
- data/tracks/csharp/exercises/run-length-encoding/RunLengthEncoding.csproj +2 -2
- data/tracks/csharp/exercises/saddle-points/SaddlePoints.csproj +2 -2
- data/tracks/csharp/exercises/say/Say.csproj +2 -2
- data/tracks/csharp/exercises/scale-generator/ScaleGenerator.csproj +2 -2
- data/tracks/csharp/exercises/scrabble-score/ScrabbleScore.csproj +2 -2
- data/tracks/csharp/exercises/secret-handshake/SecretHandshake.csproj +2 -2
- data/tracks/csharp/exercises/series/Series.csproj +2 -2
- data/tracks/csharp/exercises/series/SeriesTest.cs +17 -17
- data/tracks/csharp/exercises/sgf-parsing/SgfParsing.csproj +2 -2
- data/tracks/csharp/exercises/sieve/Sieve.csproj +2 -2
- data/tracks/csharp/exercises/simple-cipher/SimpleCipher.csproj +2 -2
- data/tracks/csharp/exercises/simple-linked-list/SimpleLinkedList.csproj +2 -2
- data/tracks/csharp/exercises/space-age/SpaceAge.csproj +2 -2
- data/tracks/csharp/exercises/spiral-matrix/SpiralMatrix.csproj +2 -2
- data/tracks/csharp/exercises/strain/Strain.csproj +2 -2
- data/tracks/csharp/exercises/sublist/Sublist.csproj +2 -2
- data/tracks/csharp/exercises/sum-of-multiples/SumOfMultiples.csproj +2 -2
- data/tracks/csharp/exercises/tournament/Tournament.csproj +2 -2
- data/tracks/csharp/exercises/transpose/Transpose.csproj +2 -2
- data/tracks/csharp/exercises/tree-building/TreeBuilding.csproj +2 -2
- data/tracks/csharp/exercises/triangle/Triangle.cs +0 -11
- data/tracks/csharp/exercises/triangle/Triangle.csproj +2 -2
- data/tracks/csharp/exercises/triangle/TriangleTest.cs +17 -17
- data/tracks/csharp/exercises/twelve-days/TwelveDays.csproj +2 -2
- data/tracks/csharp/exercises/two-bucket/TwoBucket.csproj +2 -2
- data/tracks/csharp/exercises/two-fer/TwoFer.csproj +2 -2
- data/tracks/csharp/exercises/variable-length-quantity/VariableLengthQuantity.csproj +2 -2
- data/tracks/csharp/exercises/word-count/WordCount.csproj +2 -2
- data/tracks/csharp/exercises/word-search/WordSearch.csproj +2 -2
- data/tracks/csharp/exercises/wordy/Wordy.csproj +2 -2
- data/tracks/csharp/exercises/zebra-puzzle/ZebraPuzzle.csproj +2 -2
- data/tracks/csharp/exercises/zipper/Zipper.csproj +2 -2
- data/tracks/csharp/generators/Exercises/Connect.cs +47 -0
- data/tracks/csharp/generators/Exercises/Triangle.cs +1 -1
- data/tracks/dart/config/maintainers.json +27 -1
- data/tracks/dart/pubspec.yaml +3 -0
- data/tracks/dart/tool/create-exercise +144 -5
- data/tracks/elm/.gitattributes +1 -0
- data/tracks/elm/bin/install-elm-format +9 -3
- data/tracks/elm/config.json +30 -0
- data/tracks/elm/exercises/all-your-base/AllYourBase.elm +1 -0
- data/tracks/elm/exercises/all-your-base/AllYourBase.example.elm +68 -0
- data/tracks/elm/exercises/all-your-base/README.md +65 -0
- data/tracks/elm/exercises/all-your-base/elm-package.json +15 -0
- data/tracks/elm/exercises/all-your-base/tests/Tests.elm +53 -0
- data/tracks/elm/exercises/all-your-base/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/collatz-conjecture/CollatzConjecture.elm +2 -0
- data/tracks/elm/exercises/collatz-conjecture/CollatzConjecture.example.elm +19 -0
- data/tracks/elm/exercises/collatz-conjecture/elm-package.json +15 -0
- data/tracks/elm/exercises/collatz-conjecture/package.json +14 -0
- data/tracks/elm/exercises/collatz-conjecture/tests/Tests.elm +38 -0
- data/tracks/elm/exercises/collatz-conjecture/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/isogram/Isogram.elm +1 -0
- data/tracks/elm/exercises/isogram/Isogram.example.elm +76 -0
- data/tracks/elm/exercises/isogram/README.md +50 -0
- data/tracks/elm/exercises/isogram/elm-package.json +14 -0
- data/tracks/elm/exercises/isogram/package.json +14 -0
- data/tracks/elm/exercises/isogram/tests/Tests.elm +46 -0
- data/tracks/elm/exercises/isogram/tests/elm-package.json +16 -0
- data/tracks/fsharp/.gitignore +2 -1
- data/tracks/fsharp/exercises/accumulate/Accumulate.fsproj +3 -2
- data/tracks/fsharp/exercises/acronym/Acronym.fs +1 -1
- data/tracks/fsharp/exercises/acronym/Acronym.fsproj +3 -2
- data/tracks/fsharp/exercises/acronym/AcronymTest.fs +13 -38
- data/tracks/fsharp/exercises/acronym/Example.fs +1 -1
- data/tracks/fsharp/exercises/all-your-base/AllYourBase.fsproj +3 -2
- data/tracks/fsharp/exercises/all-your-base/AllYourBaseTest.fs +64 -61
- data/tracks/fsharp/exercises/all-your-base/Example.fs +4 -1
- data/tracks/fsharp/exercises/allergies/Allergies.fs +2 -2
- data/tracks/fsharp/exercises/allergies/Allergies.fsproj +3 -2
- data/tracks/fsharp/exercises/allergies/AllergiesTest.fs +28 -37
- data/tracks/fsharp/exercises/allergies/Example.fs +3 -3
- data/tracks/fsharp/exercises/alphametics/Alphametics.fsproj +3 -2
- data/tracks/fsharp/exercises/anagram/Anagram.fsproj +3 -2
- data/tracks/fsharp/exercises/atbash-cipher/AtbashCipher.fs +4 -2
- data/tracks/fsharp/exercises/atbash-cipher/AtbashCipher.fsproj +3 -2
- data/tracks/fsharp/exercises/atbash-cipher/AtbashCipherTest.fs +38 -42
- data/tracks/fsharp/exercises/atbash-cipher/Example.fs +5 -3
- data/tracks/fsharp/exercises/bank-account/BankAccount.fsproj +3 -2
- data/tracks/fsharp/exercises/beer-song/BeerSong.fsproj +3 -2
- data/tracks/fsharp/exercises/beer-song/BeerSongTest.fs +36 -32
- data/tracks/fsharp/exercises/beer-song/Example.fs +2 -2
- data/tracks/fsharp/exercises/binary-search/BinarySearch.fsproj +3 -2
- data/tracks/fsharp/exercises/binary-search-tree/BinarySearchTree.fsproj +3 -2
- data/tracks/fsharp/exercises/bob/Bob.fs +1 -1
- data/tracks/fsharp/exercises/bob/Bob.fsproj +3 -2
- data/tracks/fsharp/exercises/bob/BobTest.fs +64 -20
- data/tracks/fsharp/exercises/bob/Example.fs +3 -4
- data/tracks/fsharp/exercises/book-store/BookStore.fs +1 -1
- data/tracks/fsharp/exercises/book-store/BookStore.fsproj +3 -2
- data/tracks/fsharp/exercises/book-store/BookStoreTest.fs +32 -25
- data/tracks/fsharp/exercises/book-store/Example.fs +1 -1
- data/tracks/fsharp/exercises/bowling/Bowling.fsproj +3 -2
- data/tracks/fsharp/exercises/bracket-push/BracketPush.fs +1 -1
- data/tracks/fsharp/exercises/bracket-push/BracketPush.fsproj +3 -2
- data/tracks/fsharp/exercises/bracket-push/BracketPushTest.fs +24 -25
- data/tracks/fsharp/exercises/bracket-push/Example.fs +1 -1
- data/tracks/fsharp/exercises/change/Change.fs +1 -1
- data/tracks/fsharp/exercises/change/Change.fsproj +3 -2
- data/tracks/fsharp/exercises/change/ChangeTest.fs +42 -18
- data/tracks/fsharp/exercises/change/Example.fs +7 -4
- data/tracks/fsharp/exercises/circular-buffer/CircularBuffer.fsproj +3 -2
- data/tracks/fsharp/exercises/clock/Clock.fsproj +3 -2
- data/tracks/fsharp/exercises/connect/Connect.fsproj +3 -2
- data/tracks/fsharp/exercises/crypto-square/CryptoSquare.fs +1 -40
- data/tracks/fsharp/exercises/crypto-square/CryptoSquare.fsproj +3 -2
- data/tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs +16 -40
- data/tracks/fsharp/exercises/crypto-square/Example.fs +13 -16
- data/tracks/fsharp/exercises/custom-set/CustomSet.fs +12 -12
- data/tracks/fsharp/exercises/custom-set/CustomSet.fsproj +3 -2
- data/tracks/fsharp/exercises/diamond/Diamond.fsproj +3 -2
- data/tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquares.fs +2 -2
- data/tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquares.fsproj +3 -2
- data/tracks/fsharp/exercises/difference-of-squares/DifferenceOfSquaresTest.fs +24 -20
- data/tracks/fsharp/exercises/difference-of-squares/Example.fs +3 -3
- data/tracks/fsharp/exercises/diffie-hellman/DiffieHellman.fsproj +3 -2
- data/tracks/fsharp/exercises/dominoes/Dominoes.fsproj +3 -2
- data/tracks/fsharp/exercises/dot-dsl/DotDsl.fsproj +3 -2
- data/tracks/fsharp/exercises/error-handling/ErrorHandling.fsproj +3 -2
- data/tracks/fsharp/exercises/etl/Etl.fsproj +3 -2
- data/tracks/fsharp/exercises/food-chain/FoodChain.fsproj +3 -2
- data/tracks/fsharp/exercises/forth/Forth.fsproj +3 -2
- data/tracks/fsharp/exercises/gigasecond/Example.fs +1 -3
- data/tracks/fsharp/exercises/gigasecond/Gigasecond.fs +1 -1
- data/tracks/fsharp/exercises/gigasecond/Gigasecond.fsproj +3 -2
- data/tracks/fsharp/exercises/gigasecond/GigasecondTest.fs +21 -12
- data/tracks/fsharp/exercises/go-counting/GoCounting.fsproj +3 -2
- data/tracks/fsharp/exercises/grade-school/GradeSchool.fsproj +3 -2
- data/tracks/fsharp/exercises/grains/Grains.fsproj +3 -2
- data/tracks/fsharp/exercises/grep/Grep.fsproj +3 -2
- data/tracks/fsharp/exercises/hamming/Hamming.fsproj +3 -2
- data/tracks/fsharp/exercises/hangman/Hangman.fsproj +3 -2
- data/tracks/fsharp/exercises/hello-world/HelloWorld.fsproj +3 -2
- data/tracks/fsharp/exercises/hello-world/HelloWorldTest.fs +6 -3
- data/tracks/fsharp/exercises/house/House.fsproj +3 -2
- data/tracks/fsharp/exercises/isogram/Example.fs +1 -1
- data/tracks/fsharp/exercises/isogram/Isogram.fs +1 -1
- data/tracks/fsharp/exercises/isogram/Isogram.fsproj +3 -2
- data/tracks/fsharp/exercises/isogram/IsogramTest.fs +16 -40
- data/tracks/fsharp/exercises/kindergarten-garden/Example.fs +6 -4
- data/tracks/fsharp/exercises/kindergarten-garden/KindergartenGarden.fs +3 -5
- data/tracks/fsharp/exercises/kindergarten-garden/KindergartenGarden.fsproj +3 -2
- data/tracks/fsharp/exercises/kindergarten-garden/KindergartenGardenTest.fs +100 -47
- data/tracks/fsharp/exercises/largest-series-product/LargestSeriesProduct.fsproj +3 -2
- data/tracks/fsharp/exercises/leap/Example.fs +2 -2
- data/tracks/fsharp/exercises/leap/Leap.fs +2 -2
- data/tracks/fsharp/exercises/leap/Leap.fsproj +3 -2
- data/tracks/fsharp/exercises/leap/LeapTest.fs +19 -15
- data/tracks/fsharp/exercises/ledger/Ledger.fsproj +3 -2
- data/tracks/fsharp/exercises/lens-person/LensPerson.fsproj +3 -2
- data/tracks/fsharp/exercises/linked-list/LinkedList.fsproj +3 -2
- data/tracks/fsharp/exercises/list-ops/ListOps.fsproj +3 -2
- data/tracks/fsharp/exercises/luhn/Luhn.fsproj +3 -2
- data/tracks/fsharp/exercises/luhn/LuhnTest.fs +30 -65
- data/tracks/fsharp/exercises/markdown/Markdown.fsproj +3 -2
- data/tracks/fsharp/exercises/matrix/Matrix.fsproj +3 -2
- data/tracks/fsharp/exercises/meetup/Meetup.fsproj +3 -2
- data/tracks/fsharp/exercises/minesweeper/Example.fs +9 -11
- data/tracks/fsharp/exercises/minesweeper/Minesweeper.fsproj +3 -2
- data/tracks/fsharp/exercises/minesweeper/MinesweeperTest.fs +117 -80
- data/tracks/fsharp/exercises/nth-prime/NthPrime.fsproj +3 -2
- data/tracks/fsharp/exercises/nucleotide-count/NucleotideCount.fsproj +3 -2
- data/tracks/fsharp/exercises/ocr-numbers/OcrNumbers.fsproj +3 -2
- data/tracks/fsharp/exercises/palindrome-products/PalindromeProducts.fsproj +3 -2
- data/tracks/fsharp/exercises/pangram/Pangram.fsproj +3 -2
- data/tracks/fsharp/exercises/pangram/PangramTest.fs +15 -27
- data/tracks/fsharp/exercises/parallel-letter-frequency/ParallelLetterFrequency.fsproj +3 -2
- data/tracks/fsharp/exercises/pascals-triangle/PascalsTriangle.fsproj +3 -2
- data/tracks/fsharp/exercises/perfect-numbers/PerfectNumbers.fsproj +3 -2
- data/tracks/fsharp/exercises/phone-number/PhoneNumber.fsproj +3 -2
- data/tracks/fsharp/exercises/pig-latin/Example.fs +1 -1
- data/tracks/fsharp/exercises/pig-latin/PigLatin.fsproj +3 -2
- data/tracks/fsharp/exercises/pig-latin/PigLatinTest.fs +64 -26
- data/tracks/fsharp/exercises/poker/Poker.fsproj +3 -2
- data/tracks/fsharp/exercises/pov/Pov.fsproj +3 -2
- data/tracks/fsharp/exercises/prime-factors/PrimeFactors.fsproj +3 -2
- data/tracks/fsharp/exercises/protein-translation/ProteinTranslation.fsproj +3 -2
- data/tracks/fsharp/exercises/proverb/Proverb.fsproj +3 -2
- data/tracks/fsharp/exercises/pythagorean-triplet/PythagoreanTriplet.fsproj +3 -2
- data/tracks/fsharp/exercises/queen-attack/Example.fs +3 -1
- data/tracks/fsharp/exercises/queen-attack/QueenAttack.fs +2 -0
- data/tracks/fsharp/exercises/queen-attack/QueenAttack.fsproj +3 -2
- data/tracks/fsharp/exercises/queen-attack/QueenAttackTest.fs +50 -20
- data/tracks/fsharp/exercises/rail-fence-cipher/RailFenceCipher.fsproj +3 -2
- data/tracks/fsharp/exercises/raindrops/Raindrops.fsproj +3 -2
- data/tracks/fsharp/exercises/raindrops/RaindropsTest.fs +77 -37
- data/tracks/fsharp/exercises/react/React.fsproj +3 -2
- data/tracks/fsharp/exercises/rectangles/Rectangles.fsproj +3 -2
- data/tracks/fsharp/exercises/rna-transcription/Example.fs +15 -7
- data/tracks/fsharp/exercises/rna-transcription/RnaTranscription.fs +2 -2
- data/tracks/fsharp/exercises/rna-transcription/RnaTranscription.fsproj +3 -2
- data/tracks/fsharp/exercises/rna-transcription/RnaTranscriptionTest.fs +29 -14
- data/tracks/fsharp/exercises/robot-name/RobotName.fsproj +3 -2
- data/tracks/fsharp/exercises/robot-simulator/RobotSimulator.fsproj +3 -2
- data/tracks/fsharp/exercises/roman-numerals/Example.fs +2 -2
- data/tracks/fsharp/exercises/roman-numerals/RomanNumerals.fs +2 -2
- data/tracks/fsharp/exercises/roman-numerals/RomanNumerals.fsproj +3 -2
- data/tracks/fsharp/exercises/roman-numerals/RomanNumeralsTest.fs +79 -26
- data/tracks/fsharp/exercises/run-length-encoding/RunLengthEncoding.fsproj +3 -2
- data/tracks/fsharp/exercises/saddle-points/SaddlePoints.fsproj +3 -2
- data/tracks/fsharp/exercises/say/Say.fsproj +3 -2
- data/tracks/fsharp/exercises/scale-generator/ScaleGenerator.fsproj +3 -2
- data/tracks/fsharp/exercises/scrabble-score/ScrabbleScore.fsproj +3 -2
- data/tracks/fsharp/exercises/scrabble-score/ScrabbleScoreTest.fs +33 -17
- data/tracks/fsharp/exercises/secret-handshake/SecretHandshake.fsproj +3 -2
- data/tracks/fsharp/exercises/series/Series.fsproj +3 -2
- data/tracks/fsharp/exercises/sgf-parsing/SgfParsing.fsproj +3 -2
- data/tracks/fsharp/exercises/sieve/Sieve.fsproj +3 -2
- data/tracks/fsharp/exercises/simple-cipher/SimpleCipher.fsproj +3 -2
- data/tracks/fsharp/exercises/simple-linked-list/SimpleLinkedList.fsproj +3 -2
- data/tracks/fsharp/exercises/space-age/SpaceAge.fsproj +3 -2
- data/tracks/fsharp/exercises/strain/Strain.fsproj +3 -2
- data/tracks/fsharp/exercises/sublist/Sublist.fsproj +3 -2
- data/tracks/fsharp/exercises/sum-of-multiples/SumOfMultiples.fsproj +3 -2
- data/tracks/fsharp/exercises/tournament/Tournament.fsproj +3 -2
- data/tracks/fsharp/exercises/transpose/Transpose.fsproj +3 -2
- data/tracks/fsharp/exercises/tree-building/TreeBuilding.fsproj +3 -2
- data/tracks/fsharp/exercises/triangle/Triangle.fsproj +3 -2
- data/tracks/fsharp/exercises/twelve-days/TwelveDays.fsproj +3 -2
- data/tracks/fsharp/exercises/two-bucket/TwoBucket.fsproj +3 -2
- data/tracks/fsharp/exercises/two-fer/TwoFer.fsproj +3 -2
- data/tracks/fsharp/exercises/variable-length-quantity/VariableLengthQuantity.fsproj +3 -2
- data/tracks/fsharp/exercises/word-count/WordCount.fsproj +3 -2
- data/tracks/fsharp/exercises/word-search/WordSearch.fsproj +3 -2
- data/tracks/fsharp/exercises/wordy/Wordy.fsproj +3 -2
- data/tracks/fsharp/exercises/zebra-puzzle/ZebraPuzzle.fsproj +3 -2
- data/tracks/fsharp/exercises/zipper/Zipper.fsproj +3 -2
- data/tracks/fsharp/generators/Common.fs +96 -0
- data/tracks/fsharp/generators/Exercise.fs +250 -0
- data/tracks/fsharp/generators/Generators.fs +210 -0
- data/tracks/fsharp/generators/Generators.fsproj +32 -0
- data/tracks/fsharp/generators/Generators.sln +24 -0
- data/tracks/fsharp/generators/Input.fs +99 -0
- data/tracks/fsharp/generators/Options.fs +31 -0
- data/tracks/fsharp/generators/Output.fs +224 -0
- data/tracks/fsharp/generators/Program.fs +35 -0
- data/tracks/fsharp/generators/Properties/launchSettings.json +8 -0
- data/tracks/fsharp/generators/Templates/_AssertEmpty.liquid +1 -0
- data/tracks/fsharp/generators/Templates/_AssertEqual.liquid +1 -0
- data/tracks/fsharp/generators/Templates/_TestClass.liquid +13 -0
- data/tracks/fsharp/generators/Templates/_TestMethod.liquid +3 -0
- data/tracks/fsharp/generators/Templates/_TestMethodBody.liquid +4 -0
- data/tracks/go/.travis.yml +3 -3
- data/tracks/groovy/CONTRIBUTING.md +2 -2
- data/tracks/groovy/config.json +12 -0
- data/tracks/groovy/exercises/scrabble-score/Example.groovy +18 -0
- data/tracks/groovy/exercises/scrabble-score/README.md +63 -0
- data/tracks/groovy/exercises/scrabble-score/ScrabbleScore.groovy +7 -0
- data/tracks/groovy/exercises/scrabble-score/ScrabbleScoreSpec.groovy +45 -0
- data/tracks/groovy/exercises/two-fer/TwoFer.groovy +2 -2
- data/tracks/haskell/exercises/change/README.md +1 -1
- data/tracks/haskell/exercises/lens-person/README.md +1 -1
- data/tracks/haskell/exercises/palindrome-products/README.md +5 -12
- data/tracks/haskell/exercises/sum-of-multiples/README.md +0 -3
- data/tracks/idris/config.json +12 -0
- data/tracks/idris/exercises/accumulate/Accumulate.ipkg +5 -0
- data/tracks/idris/exercises/accumulate/Makefile +23 -0
- data/tracks/idris/exercises/accumulate/README.md +32 -0
- data/tracks/idris/exercises/accumulate/src/Example.idr +6 -0
- data/tracks/idris/exercises/accumulate/src/Test/Accumulate.idr +35 -0
- data/tracks/java/config/maintainers.json +4 -7
- data/tracks/java/config.json +99 -22
- data/tracks/java/exercises/binary-search-tree/.meta/src/reference/java/{BST.java → BinarySearchTree.java} +1 -1
- data/tracks/java/exercises/binary-search-tree/src/test/java/{BSTTest.java → BinarySearchTreeTest.java} +34 -36
- data/tracks/java/exercises/robot-simulator/src/main/java/GridPosition.java +19 -15
- data/tracks/java/exercises/saddle-points/.meta/src/reference/java/MatrixCoordinate.java +7 -1
- data/tracks/java/exercises/saddle-points/src/main/java/MatrixCoordinate.java +7 -1
- data/tracks/java/exercises/settings.gradle +1 -0
- data/tracks/java/exercises/tournament/.meta/src/reference/java/Result.java +5 -0
- data/tracks/java/exercises/tournament/.meta/src/reference/java/TeamResult.java +41 -0
- data/tracks/java/exercises/tournament/.meta/src/reference/java/Tournament.java +62 -0
- data/tracks/java/exercises/tournament/README.md +78 -0
- data/tracks/java/exercises/tournament/build.gradle +18 -0
- data/tracks/java/{.Rhistory → exercises/tournament/src/main/java/.keep} +0 -0
- data/tracks/java/exercises/tournament/src/test/java/TournamentTest.java +160 -0
- data/tracks/php/config.json +14 -0
- data/tracks/php/exercises/collatz-conjecture/collatz-conjecture_test.php +44 -0
- data/tracks/php/exercises/collatz-conjecture/example.php +18 -0
- data/tracks/python/exercises/circular-buffer/circular_buffer.py +1 -1
- data/tracks/python/exercises/clock/clock.py +1 -1
- data/tracks/python/exercises/etl/etl.py +1 -1
- data/tracks/python/exercises/grade-school/grade_school.py +1 -1
- data/tracks/python/exercises/grains/grains.py +2 -2
- data/tracks/python/exercises/kindergarten-garden/kindergarten_garden.py +1 -1
- data/tracks/python/exercises/linked-list/linked_list.py +1 -1
- data/tracks/python/exercises/rectangles/rectangles.py +1 -1
- data/tracks/python/exercises/sum-of-multiples/sum_of_multiples.py +1 -1
- data/tracks/rust/exercises/bob/tests/bob.rs +1 -0
- data/tracks/rust/exercises/crypto-square/tests/crypto-square.rs +7 -0
- data/tracks/rust/exercises/gigasecond/tests/gigasecond.rs +1 -1
- data/tracks/rust/exercises/phone-number/Cargo.lock +1 -1
- data/tracks/rust/exercises/phone-number/Cargo.toml +1 -1
- data/tracks/rust/exercises/phone-number/example.rs +17 -23
- data/tracks/rust/exercises/phone-number/tests/phone-number.rs +31 -40
- data/tracks/rust/exercises/say/tests/say.rs +2 -0
- data/tracks/rust/exercises/sum-of-multiples/README.md +0 -3
- data/tracks/scala/config.json +11 -0
- data/tracks/scala/exercises/collatz-conjecture/README.md +43 -0
- data/tracks/scala/exercises/collatz-conjecture/build.sbt +3 -0
- data/tracks/scala/exercises/collatz-conjecture/example.scala +17 -0
- data/tracks/scala/exercises/collatz-conjecture/src/main/scala/.keep +0 -0
- data/tracks/scala/exercises/collatz-conjecture/src/test/scala/CollatzConjectureTest.scala +34 -0
- data/tracks/scala/testgen/src/main/scala/CollatzConjectureTestGenerator.scala +35 -0
- data/tracks/scheme/config.json +8 -0
- data/tracks/scheme/exercises/word-count/README.md +19 -0
- data/tracks/scheme/exercises/word-count/example.scm +27 -0
- data/tracks/scheme/exercises/word-count/word-count-test.scm +90 -0
- data/tracks/scheme/exercises/word-count/word-count.scm +5 -0
- data/tracks/sml/README.md +20 -1
- data/tracks/sml/bin/generate +74 -20
- data/tracks/sml/exercises/binary/README.md +23 -5
- data/tracks/sml/exercises/binary/binary.sml +2 -0
- data/tracks/sml/exercises/binary/example.sml +10 -21
- data/tracks/sml/exercises/binary/test.sml +55 -30
- data/tracks/sml/exercises/binary/testlib.sml +159 -0
- data/tracks/sml/exercises/flatten-array/HINTS.md +8 -0
- data/tracks/sml/exercises/flatten-array/README.md +31 -6
- data/tracks/sml/exercises/flatten-array/example.sml +3 -4
- data/tracks/sml/exercises/flatten-array/flatten-array.sml +4 -5
- data/tracks/sml/exercises/flatten-array/test.sml +76 -52
- data/tracks/sml/exercises/flatten-array/testlib.sml +159 -0
- data/tracks/sml/exercises/nth-prime/HINTS.md +9 -0
- data/tracks/sml/exercises/nth-prime/README.md +32 -5
- data/tracks/sml/exercises/nth-prime/example.sml +28 -46
- data/tracks/sml/exercises/nth-prime/nth-prime.sml +1 -1
- data/tracks/sml/exercises/nth-prime/test.sml +19 -63
- data/tracks/sml/exercises/nth-prime/testlib.sml +159 -0
- data/tracks/sml/exercises/raindrops/README.md +21 -5
- data/tracks/typescript/config.json +14 -0
- data/tracks/typescript/exercises/triangle/README.md +55 -0
- data/tracks/typescript/exercises/triangle/package.json +36 -0
- data/tracks/typescript/exercises/triangle/triangle.example.ts +56 -0
- data/tracks/typescript/exercises/triangle/triangle.test.ts +79 -0
- data/tracks/typescript/exercises/triangle/triangle.ts +12 -0
- data/tracks/typescript/exercises/triangle/tsconfig.json +22 -0
- data/tracks/typescript/exercises/triangle/tslint.json +127 -0
- data/tracks/typescript/exercises/triangle/yarn.lock +2305 -0
- metadata +85 -6
- data/tracks/d/exercises/crypto-square/.dub/dub.json +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8ac63f9d9879908b1ca0ab3dda476f7667b5e3f
|
4
|
+
data.tar.gz: a76b44ecb738925f195c51ff2d76e96e3a90cdf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3f20d638ef6e3247071737bef5d49204a311afa239f2277711a1c64ae2412ac288663606dfa5945d1f69db487c4f1a3c2c9765b4fbe3f129bce2ec18887920
|
7
|
+
data.tar.gz: a452673c796caa127a4b9138cdca6c02f9f9091b47e2cc3163fbb8ebbee1b0837a8e1e72db4c4a0e6c1e761bef17b8e0657b6323bf7c51bcfbde30e0aebbec77
|
data/lib/trackler/version.rb
CHANGED
@@ -0,0 +1,88 @@
|
|
1
|
+
{
|
2
|
+
"exercise": "isbn-verifier",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"comments": [
|
5
|
+
"An expected value of true indicates a valid ISBN-10, ",
|
6
|
+
"whereas false means the ISBN-10 is invalid."
|
7
|
+
],
|
8
|
+
"cases": [
|
9
|
+
{
|
10
|
+
"description": "valid isbn number",
|
11
|
+
"property": "isbn",
|
12
|
+
"input": "3-598-21508-8",
|
13
|
+
"expected": true
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"description": "invalid isbn check digit",
|
17
|
+
"property": "isbn",
|
18
|
+
"input": "3-598-21508-9",
|
19
|
+
"expected": false
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"description": "valid isbn number with a check digit of 10",
|
23
|
+
"property": "isbn",
|
24
|
+
"input": "3-598-21507-X",
|
25
|
+
"expected": true
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"description": "check digit is a character other than X",
|
29
|
+
"property": "isbn",
|
30
|
+
"input": "3-598-21507-A",
|
31
|
+
"expected": false
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"description": "invalid character in isbn",
|
35
|
+
"property": "isbn",
|
36
|
+
"input": "3-598-2K507-0",
|
37
|
+
"expected": false
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"description": "X is only valid as a check digit",
|
41
|
+
"property": "isbn",
|
42
|
+
"input": "3-598-2X507-0",
|
43
|
+
"expected": false
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"description": "valid isbn without separating dashes",
|
47
|
+
"property": "isbn",
|
48
|
+
"input": "3598215088",
|
49
|
+
"expected": true
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"description": "isbn without separating dashes and X as check digit",
|
53
|
+
"property": "isbn",
|
54
|
+
"input": "359821507X",
|
55
|
+
"expected": true
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"description": "isbn without check digit and dashes",
|
59
|
+
"property": "isbn",
|
60
|
+
"input": "359821507",
|
61
|
+
"expected": false
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"description": "too long isbn and no dashes",
|
65
|
+
"property": "isbn",
|
66
|
+
"input": "3598215078X",
|
67
|
+
"expected": false
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"description": "isbn without check digit",
|
71
|
+
"property": "isbn",
|
72
|
+
"input": "3-598-21507",
|
73
|
+
"expected": false
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"description": "too long isbn",
|
77
|
+
"property": "isbn",
|
78
|
+
"input": "3-598-21507-XA",
|
79
|
+
"expected": false
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"description": "check digit of X should not be used for 0",
|
83
|
+
"property": "isbn",
|
84
|
+
"input": "3-598-21515-X",
|
85
|
+
"expected": false
|
86
|
+
}
|
87
|
+
]
|
88
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
Check if a given ISBN-10 is valid.
|
2
|
+
|
3
|
+
## Functionality
|
4
|
+
|
5
|
+
Given an unkown string the program should check if the provided string is a valid ISBN-10.
|
6
|
+
Putting this into place requires some thinking about preprocessing/parsing of the string prior to calculating the check digit for the ISBN.
|
7
|
+
|
8
|
+
The program should allow for ISBN-10 without the separating dashes to be verified as well.
|
9
|
+
|
10
|
+
## ISBN
|
11
|
+
|
12
|
+
Let's take a random ISBN-10 number, say `3-598-21508-8` for this.
|
13
|
+
The first digit block indicates the group where the ISBN belongs. Groups can consist of shared languages, geographic regions or countries. The leading '3' signals this ISBN is from a german speaking country.
|
14
|
+
The following number block is to identify the publisher. Since this is a three digit publisher number there is a 5 digit title number for this book.
|
15
|
+
The last digit in the ISBN is the check digit which is used to detect read errors.
|
16
|
+
|
17
|
+
The first 9 digits in the ISBN have to be between 0 and 9.
|
18
|
+
The check digit can additionally be an 'X' to allow 10 to be a valid check digit as well.
|
19
|
+
|
20
|
+
A valid ISBN-10 is calculated with this formula `(x1 * 10 + x2 * 9 + x3 * 8 + x4 * 7 + x5 * 6 + x6 * 5 + x7 * 4 + x8 * 3 + x9 * 2 + x10 * 1) mod 11 == 0`
|
21
|
+
So for our example ISBN this means:
|
22
|
+
(3 * 10 + 5 * 9 + 9 * 8 + 8 * 7 + 2 * 6 + 1 * 5 + 5 * 4 + 0 * 3 + 8 * 2 + 8 * 1) mod 11 = 0
|
23
|
+
|
24
|
+
Which proves that the ISBN is valid.
|
25
|
+
|
26
|
+
## Caveats
|
27
|
+
|
28
|
+
Converting from string to number can be tricky in certain languages.
|
29
|
+
It's getting even trickier since the check-digit of an ISBN-10 can be 'X'.
|
30
|
+
|
31
|
+
## Bonus tasks
|
32
|
+
|
33
|
+
* Generate a valid ISBN-13 from the input ISBN-10 (and maybe verify it again with a derived verifier)
|
34
|
+
|
35
|
+
* Generate valid ISBN, maybe even from a given starting ISBN
|
@@ -0,0 +1,4 @@
|
|
1
|
+
---
|
2
|
+
blurb: "Check if a given string is a valid ISBN-10 number."
|
3
|
+
source: "Converting a string into a number and some basic processing utilizing a relatable real world example."
|
4
|
+
source_url: "https://en.wikipedia.org/wiki/International_Standard_Book_Number#ISBN-10_check_digit_calculation"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"exercise": "robot-simulator",
|
3
|
-
"version": "
|
3
|
+
"version": "2.0.0",
|
4
4
|
"comments": [
|
5
5
|
"Some tests have two expectations: one for the position, one for the direction",
|
6
6
|
"Optionally, you can also test",
|
@@ -16,11 +16,17 @@
|
|
16
16
|
"description": "Robots are created with a position and direction",
|
17
17
|
"property": "create",
|
18
18
|
"robot": {
|
19
|
-
"position":
|
19
|
+
"position": {
|
20
|
+
"x": 0,
|
21
|
+
"y": 0
|
22
|
+
},
|
20
23
|
"direction": "north"
|
21
24
|
},
|
22
25
|
"expected": {
|
23
|
-
"position":
|
26
|
+
"position": {
|
27
|
+
"x": 0,
|
28
|
+
"y": 0
|
29
|
+
},
|
24
30
|
"direction": "north"
|
25
31
|
}
|
26
32
|
},
|
@@ -28,11 +34,17 @@
|
|
28
34
|
"description": "Negative positions are allowed",
|
29
35
|
"property": "create",
|
30
36
|
"robot": {
|
31
|
-
"position":
|
37
|
+
"position": {
|
38
|
+
"x": -1,
|
39
|
+
"y": -1
|
40
|
+
},
|
32
41
|
"direction": "south"
|
33
42
|
},
|
34
43
|
"expected": {
|
35
|
-
"position":
|
44
|
+
"position": {
|
45
|
+
"x": -1,
|
46
|
+
"y": -1
|
47
|
+
},
|
36
48
|
"direction": "south"
|
37
49
|
}
|
38
50
|
}
|
@@ -45,18 +57,27 @@
|
|
45
57
|
"description": "does not change the position",
|
46
58
|
"property": "turnRight",
|
47
59
|
"robot": {
|
48
|
-
"position":
|
60
|
+
"position": {
|
61
|
+
"x": 0,
|
62
|
+
"y": 0
|
63
|
+
},
|
49
64
|
"direction": "north"
|
50
65
|
},
|
51
66
|
"expected": {
|
52
|
-
"position":
|
67
|
+
"position": {
|
68
|
+
"x": 0,
|
69
|
+
"y": 0
|
70
|
+
}
|
53
71
|
}
|
54
72
|
},
|
55
73
|
{
|
56
74
|
"description": "changes the direction from north to east",
|
57
75
|
"property": "turnRight",
|
58
76
|
"robot": {
|
59
|
-
"position":
|
77
|
+
"position": {
|
78
|
+
"x": 0,
|
79
|
+
"y": 0
|
80
|
+
},
|
60
81
|
"direction": "north"
|
61
82
|
},
|
62
83
|
"expected": {
|
@@ -67,7 +88,10 @@
|
|
67
88
|
"description": "changes the direction from east to south",
|
68
89
|
"property": "turnRight",
|
69
90
|
"robot": {
|
70
|
-
"position":
|
91
|
+
"position": {
|
92
|
+
"x": 0,
|
93
|
+
"y": 0
|
94
|
+
},
|
71
95
|
"direction": "east"
|
72
96
|
},
|
73
97
|
"expected": {
|
@@ -78,7 +102,10 @@
|
|
78
102
|
"description": "changes the direction from south to west",
|
79
103
|
"property": "turnRight",
|
80
104
|
"robot": {
|
81
|
-
"position":
|
105
|
+
"position": {
|
106
|
+
"x": 0,
|
107
|
+
"y": 0
|
108
|
+
},
|
82
109
|
"direction": "south"
|
83
110
|
},
|
84
111
|
"expected": {
|
@@ -89,7 +116,10 @@
|
|
89
116
|
"description": "changes the direction from west to north",
|
90
117
|
"property": "turnRight",
|
91
118
|
"robot": {
|
92
|
-
"position":
|
119
|
+
"position": {
|
120
|
+
"x": 0,
|
121
|
+
"y": 0
|
122
|
+
},
|
93
123
|
"direction": "west"
|
94
124
|
},
|
95
125
|
"expected": {
|
@@ -105,18 +135,27 @@
|
|
105
135
|
"description": "does not change the position",
|
106
136
|
"property": "turnLeft",
|
107
137
|
"robot": {
|
108
|
-
"position":
|
138
|
+
"position": {
|
139
|
+
"x": 0,
|
140
|
+
"y": 0
|
141
|
+
},
|
109
142
|
"direction": "north"
|
110
143
|
},
|
111
144
|
"expected": {
|
112
|
-
"position":
|
145
|
+
"position": {
|
146
|
+
"x": 0,
|
147
|
+
"y": 0
|
148
|
+
}
|
113
149
|
}
|
114
150
|
},
|
115
151
|
{
|
116
152
|
"description": "changes the direction from north to west",
|
117
153
|
"property": "turnLeft",
|
118
154
|
"robot": {
|
119
|
-
"position":
|
155
|
+
"position": {
|
156
|
+
"x": 0,
|
157
|
+
"y": 0
|
158
|
+
},
|
120
159
|
"direction": "north"
|
121
160
|
},
|
122
161
|
"expected": {
|
@@ -127,7 +166,10 @@
|
|
127
166
|
"description": "changes the direction from west to south",
|
128
167
|
"property": "turnLeft",
|
129
168
|
"robot": {
|
130
|
-
"position":
|
169
|
+
"position": {
|
170
|
+
"x": 0,
|
171
|
+
"y": 0
|
172
|
+
},
|
131
173
|
"direction": "west"
|
132
174
|
},
|
133
175
|
"expected": {
|
@@ -138,7 +180,10 @@
|
|
138
180
|
"description": "changes the direction from south to east",
|
139
181
|
"property": "turnLeft",
|
140
182
|
"robot": {
|
141
|
-
"position":
|
183
|
+
"position": {
|
184
|
+
"x": 0,
|
185
|
+
"y": 0
|
186
|
+
},
|
142
187
|
"direction": "south"
|
143
188
|
},
|
144
189
|
"expected": {
|
@@ -149,7 +194,10 @@
|
|
149
194
|
"description": "changes the direction from east to north",
|
150
195
|
"property": "turnLeft",
|
151
196
|
"robot": {
|
152
|
-
"position":
|
197
|
+
"position": {
|
198
|
+
"x": 0,
|
199
|
+
"y": 0
|
200
|
+
},
|
153
201
|
"direction": "east"
|
154
202
|
},
|
155
203
|
"expected": {
|
@@ -165,7 +213,10 @@
|
|
165
213
|
"description": "does not change the direction",
|
166
214
|
"property": "advance",
|
167
215
|
"robot": {
|
168
|
-
"position":
|
216
|
+
"position": {
|
217
|
+
"x": 0,
|
218
|
+
"y": 0
|
219
|
+
},
|
169
220
|
"direction": "north"
|
170
221
|
},
|
171
222
|
"expected": {
|
@@ -176,44 +227,68 @@
|
|
176
227
|
"description": "increases the y coordinate one when facing north",
|
177
228
|
"property": "advance",
|
178
229
|
"robot": {
|
179
|
-
"position":
|
230
|
+
"position": {
|
231
|
+
"x": 0,
|
232
|
+
"y": 0
|
233
|
+
},
|
180
234
|
"direction": "north"
|
181
235
|
},
|
182
236
|
"expected": {
|
183
|
-
"position":
|
237
|
+
"position": {
|
238
|
+
"x": 0,
|
239
|
+
"y": 1
|
240
|
+
}
|
184
241
|
}
|
185
242
|
},
|
186
243
|
{
|
187
244
|
"description": "decreases the y coordinate by one when facing south",
|
188
245
|
"property": "advance",
|
189
246
|
"robot": {
|
190
|
-
"position":
|
247
|
+
"position": {
|
248
|
+
"x": 0,
|
249
|
+
"y": 0
|
250
|
+
},
|
191
251
|
"direction": "south"
|
192
252
|
},
|
193
253
|
"expected": {
|
194
|
-
"position":
|
254
|
+
"position": {
|
255
|
+
"x": 0,
|
256
|
+
"y": -1
|
257
|
+
}
|
195
258
|
}
|
196
259
|
},
|
197
260
|
{
|
198
261
|
"description": "increases the x coordinate by one when facing east",
|
199
262
|
"property": "advance",
|
200
263
|
"robot": {
|
201
|
-
"position":
|
264
|
+
"position": {
|
265
|
+
"x": 0,
|
266
|
+
"y": 0
|
267
|
+
},
|
202
268
|
"direction": "east"
|
203
269
|
},
|
204
270
|
"expected": {
|
205
|
-
"position":
|
271
|
+
"position": {
|
272
|
+
"x": 1,
|
273
|
+
"y": 0
|
274
|
+
}
|
206
275
|
}
|
207
276
|
},
|
208
277
|
{
|
209
278
|
"description": "decreases the x coordinate by one when facing west",
|
210
279
|
"property": "advance",
|
211
280
|
"robot": {
|
212
|
-
"position":
|
281
|
+
"position": {
|
282
|
+
"x": 0,
|
283
|
+
"y": 0
|
284
|
+
},
|
213
285
|
"direction": "west"
|
214
286
|
},
|
215
287
|
"expected": {
|
216
|
-
"position":
|
288
|
+
"position": {
|
289
|
+
"x": -1,
|
290
|
+
"y": 0
|
291
|
+
}
|
217
292
|
}
|
218
293
|
}
|
219
294
|
]
|
@@ -225,12 +300,18 @@
|
|
225
300
|
"description": "instructions to move west and north",
|
226
301
|
"property": "instructions",
|
227
302
|
"robot": {
|
228
|
-
"position":
|
303
|
+
"position": {
|
304
|
+
"x": 0,
|
305
|
+
"y": 0
|
306
|
+
},
|
229
307
|
"direction": "north"
|
230
308
|
},
|
231
309
|
"instructions": "LAAARALA",
|
232
310
|
"expected": {
|
233
|
-
"position":
|
311
|
+
"position": {
|
312
|
+
"x": -4,
|
313
|
+
"y": 1
|
314
|
+
},
|
234
315
|
"direction": "west"
|
235
316
|
}
|
236
317
|
},
|
@@ -238,12 +319,18 @@
|
|
238
319
|
"description": "instructions to move west and south",
|
239
320
|
"property": "instructions",
|
240
321
|
"robot": {
|
241
|
-
"position":
|
322
|
+
"position": {
|
323
|
+
"x": 2,
|
324
|
+
"y": -7
|
325
|
+
},
|
242
326
|
"direction": "east"
|
243
327
|
},
|
244
328
|
"instructions": "RRAAAAALA",
|
245
329
|
"expected": {
|
246
|
-
"position":
|
330
|
+
"position": {
|
331
|
+
"x": -3,
|
332
|
+
"y": -8
|
333
|
+
},
|
247
334
|
"direction": "south"
|
248
335
|
}
|
249
336
|
},
|
@@ -251,12 +338,18 @@
|
|
251
338
|
"description": "instructions to move east and north",
|
252
339
|
"property": "instructions",
|
253
340
|
"robot": {
|
254
|
-
"position":
|
341
|
+
"position": {
|
342
|
+
"x": 8,
|
343
|
+
"y": 4
|
344
|
+
},
|
255
345
|
"direction": "south"
|
256
346
|
},
|
257
347
|
"instructions": "LAAARRRALLLL",
|
258
348
|
"expected": {
|
259
|
-
"position":
|
349
|
+
"position": {
|
350
|
+
"x": 11,
|
351
|
+
"y": 5
|
352
|
+
},
|
260
353
|
"direction": "north"
|
261
354
|
}
|
262
355
|
}
|
@@ -5,6 +5,3 @@ If we list all the natural numbers up to but not including 20 that are
|
|
5
5
|
multiples of either 3 or 5, we get 3, 5, 6 and 9, 10, 12, 15, and 18.
|
6
6
|
|
7
7
|
The sum of these multiples is 78.
|
8
|
-
|
9
|
-
Given a number, find the sum of the multiples of a given set of numbers,
|
10
|
-
up to but not including that number.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"exercise": "two-bucket",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.2.0",
|
4
4
|
"cases": [
|
5
5
|
{
|
6
6
|
"description": "Measure using bucket one of size 3 and bucket two of size 5 - start with bucket one",
|
@@ -75,9 +75,9 @@
|
|
75
75
|
"goal": 3,
|
76
76
|
"start_bucket": "one",
|
77
77
|
"expected": {
|
78
|
-
"moves":
|
78
|
+
"moves": 2,
|
79
79
|
"goal_bucket": "two",
|
80
|
-
"other_bucket":
|
80
|
+
"other_bucket": 2
|
81
81
|
}
|
82
82
|
}
|
83
83
|
]
|