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.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/problem-specifications/exercises/hamming/description.md +4 -3
- data/problem-specifications/exercises/isbn-verifier/canonical-data.json +9 -1
- data/tracks/clojure/exercises/bob/README.md +2 -0
- data/tracks/clojure/exercises/bob/src/example.clj +4 -0
- data/tracks/clojure/exercises/bob/test/bob_test.clj +1 -1
- data/tracks/clojure/exercises/say/README.md +2 -1
- data/tracks/csharp/exercises/acronym/AcronymTest.cs +3 -9
- data/tracks/csharp/exercises/all-your-base/AllYourBaseTest.cs +43 -43
- data/tracks/csharp/exercises/allergies/AllergiesTest.cs +1 -1
- data/tracks/csharp/exercises/alphametics/AlphameticsTest.cs +21 -1
- data/tracks/csharp/exercises/anagram/AnagramTest.cs +1 -35
- data/tracks/csharp/exercises/atbash-cipher/AtbashCipherTest.cs +1 -1
- data/tracks/csharp/exercises/beer-song/BeerSong.cs +1 -6
- data/tracks/csharp/exercises/beer-song/BeerSongTest.cs +20 -28
- data/tracks/csharp/exercises/beer-song/Example.cs +6 -6
- data/tracks/csharp/exercises/binary-search/BinarySearchTest.cs +1 -1
- data/tracks/csharp/exercises/bob/BobTest.cs +1 -1
- data/tracks/csharp/exercises/book-store/BookStoreTest.cs +1 -1
- data/tracks/csharp/exercises/bowling/BowlingTest.cs +47 -29
- data/tracks/csharp/exercises/bracket-push/BracketPushTest.cs +36 -29
- data/tracks/csharp/exercises/change/Change.cs +1 -1
- data/tracks/csharp/exercises/change/ChangeTest.cs +48 -21
- data/tracks/csharp/exercises/change/Example.cs +31 -18
- data/tracks/csharp/exercises/circular-buffer/CircularBuffer.cs +2 -2
- data/tracks/csharp/exercises/circular-buffer/CircularBufferTest.cs +88 -111
- data/tracks/csharp/exercises/circular-buffer/Example.cs +7 -7
- data/tracks/csharp/exercises/clock/ClockTest.cs +37 -37
- data/tracks/csharp/exercises/collatz-conjecture/CollatzConjectureTest.cs +1 -1
- data/tracks/csharp/exercises/complex-numbers/ComplexNumbersTest.cs +19 -10
- data/tracks/csharp/exercises/connect/ConnectTest.cs +1 -1
- data/tracks/csharp/exercises/crypto-square/CryptoSquareTest.cs +1 -1
- data/tracks/csharp/exercises/custom-set/.meta/hints.md +3 -3
- data/tracks/csharp/exercises/custom-set/CustomSet.cs +10 -49
- data/tracks/csharp/exercises/custom-set/CustomSetTest.cs +153 -157
- data/tracks/csharp/exercises/custom-set/Example.cs +26 -54
- data/tracks/csharp/exercises/difference-of-squares/DifferenceOfSquaresTest.cs +1 -1
- data/tracks/csharp/exercises/dominoes/DominoesTest.cs +25 -25
- data/tracks/csharp/exercises/etl/Etl.cs +1 -1
- data/tracks/csharp/exercises/etl/EtlTest.cs +4 -4
- data/tracks/csharp/exercises/etl/Example.cs +1 -1
- data/tracks/csharp/exercises/flatten-array/FlattenArrayTest.cs +13 -13
- data/tracks/csharp/exercises/food-chain/Example.cs +5 -0
- data/tracks/csharp/exercises/food-chain/FoodChain.cs +5 -0
- data/tracks/csharp/exercises/food-chain/FoodChainTest.cs +9 -9
- data/tracks/csharp/exercises/forth/Example.cs +28 -33
- data/tracks/csharp/exercises/forth/Forth.cs +1 -19
- data/tracks/csharp/exercises/forth/ForthTest.cs +215 -52
- data/tracks/csharp/exercises/gigasecond/GigasecondTest.cs +1 -1
- data/tracks/csharp/exercises/grains/GrainsTest.cs +1 -1
- data/tracks/csharp/exercises/grep/Example.cs +1 -1
- data/tracks/csharp/exercises/grep/Grep.cs +1 -1
- data/tracks/csharp/exercises/grep/GrepTest.cs +268 -237
- data/tracks/csharp/exercises/hamming/HammingTest.cs +1 -1
- data/tracks/csharp/exercises/hello-world/HelloWorldTest.cs +1 -1
- data/tracks/csharp/exercises/house/Example.cs +7 -2
- data/tracks/csharp/exercises/house/House.cs +5 -0
- data/tracks/csharp/exercises/house/HouseTest.cs +40 -223
- data/tracks/csharp/exercises/isbn-verifier/IsbnVerifierTest.cs +14 -2
- data/tracks/csharp/exercises/isogram/IsogramTest.cs +1 -1
- data/tracks/csharp/exercises/kindergarten-garden/KindergartenGardenTest.cs +1 -1
- data/tracks/csharp/exercises/largest-series-product/LargestSeriesProductTest.cs +1 -1
- data/tracks/csharp/exercises/leap/LeapTest.cs +1 -1
- data/tracks/csharp/exercises/luhn/LuhnTest.cs +1 -1
- data/tracks/csharp/exercises/markdown/MarkdownTest.cs +34 -27
- data/tracks/csharp/exercises/minesweeper/MinesweeperTest.cs +29 -34
- data/tracks/csharp/exercises/nth-prime/NthPrimeTest.cs +1 -1
- data/tracks/csharp/exercises/nucleotide-count/NucleotideCountTest.cs +1 -1
- data/tracks/csharp/exercises/ocr-numbers/OcrNumbersTest.cs +35 -35
- data/tracks/csharp/exercises/pangram/PangramTest.cs +1 -1
- data/tracks/csharp/exercises/pascals-triangle/PascalsTriangleTest.cs +1 -1
- data/tracks/csharp/exercises/perfect-numbers/PerfectNumbersTest.cs +1 -1
- data/tracks/csharp/exercises/phone-number/PhoneNumberTest.cs +17 -3
- data/tracks/csharp/exercises/pig-latin/PigLatinTest.cs +1 -1
- data/tracks/csharp/exercises/poker/PokerTest.cs +1 -1
- data/tracks/csharp/exercises/prime-factors/PrimeFactorsTest.cs +1 -1
- data/tracks/csharp/exercises/protein-translation/Example.cs +4 -4
- data/tracks/csharp/exercises/protein-translation/ProteinTranslation.cs +1 -1
- data/tracks/csharp/exercises/protein-translation/ProteinTranslationTest.cs +104 -45
- data/tracks/csharp/exercises/proverb/ProverbTest.cs +38 -6
- data/tracks/csharp/exercises/queen-attack/QueenAttackTest.cs +1 -1
- data/tracks/csharp/exercises/rail-fence-cipher/RailFenceCipherTest.cs +1 -1
- data/tracks/csharp/exercises/raindrops/RaindropsTest.cs +1 -1
- data/tracks/csharp/exercises/rectangles/RectanglesTest.cs +63 -21
- data/tracks/csharp/exercises/reverse-string/ReverseStringTest.cs +1 -1
- data/tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs +1 -1
- data/tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs +7 -1
- data/tracks/csharp/exercises/rotational-cipher/RotationalCipherTest.cs +1 -1
- data/tracks/csharp/exercises/run-length-encoding/RunLengthEncodingTest.cs +1 -1
- data/tracks/csharp/exercises/saddle-points/SaddlePointsTest.cs +11 -11
- data/tracks/csharp/exercises/say/SayTest.cs +1 -1
- data/tracks/csharp/exercises/scale-generator/Example.cs +5 -0
- data/tracks/csharp/exercises/scale-generator/ScaleGenerator.cs +5 -0
- data/tracks/csharp/exercises/scale-generator/ScaleGeneratorTest.cs +56 -47
- data/tracks/csharp/exercises/scrabble-score/ScrabbleScoreTest.cs +1 -1
- data/tracks/csharp/exercises/secret-handshake/SecretHandshakeTest.cs +1 -1
- data/tracks/csharp/exercises/sieve/SieveTest.cs +1 -1
- data/tracks/csharp/exercises/space-age/SpaceAgeTest.cs +1 -1
- data/tracks/csharp/exercises/spiral-matrix/SpiralMatrixTest.cs +28 -34
- data/tracks/csharp/exercises/sum-of-multiples/SumOfMultiplesTest.cs +1 -1
- data/tracks/csharp/exercises/tournament/Example.cs +15 -7
- data/tracks/csharp/exercises/tournament/TournamentTest.cs +97 -99
- data/tracks/csharp/exercises/transpose/TransposeTest.cs +50 -96
- data/tracks/csharp/exercises/triangle/TriangleTest.cs +1 -1
- data/tracks/csharp/exercises/twelve-days/TwelveDays.cs +1 -1
- data/tracks/csharp/exercises/two-bucket/TwoBucketTest.cs +1 -1
- data/tracks/csharp/exercises/two-fer/TwoFerTest.cs +1 -1
- data/tracks/csharp/exercises/variable-length-quantity/Example.cs +3 -3
- data/tracks/csharp/exercises/variable-length-quantity/VariableLengthQuantity.cs +2 -2
- data/tracks/csharp/exercises/variable-length-quantity/VariableLengthQuantityTest.cs +165 -40
- data/tracks/csharp/exercises/word-count/Example.cs +1 -1
- data/tracks/csharp/exercises/word-count/WordCount.cs +1 -1
- data/tracks/csharp/exercises/word-count/WordCountTest.cs +12 -12
- data/tracks/csharp/exercises/wordy/WordyTest.cs +1 -1
- data/tracks/csharp/exercises/yacht/Example.cs +2 -5
- data/tracks/csharp/exercises/yacht/YachtTest.cs +7 -1
- data/tracks/csharp/exercises/zebra-puzzle/Example.cs +4 -4
- data/tracks/csharp/exercises/zebra-puzzle/ZebraPuzzle.cs +2 -2
- data/tracks/csharp/exercises/zebra-puzzle/ZebraPuzzleTest.cs +7 -5
- data/tracks/csharp/generators/Exercises/AllYourBase.cs +1 -0
- data/tracks/csharp/generators/Exercises/Alphametics.cs +5 -2
- data/tracks/csharp/generators/Exercises/BeerSong.cs +3 -0
- data/tracks/csharp/generators/Exercises/BinarySearch.cs +1 -0
- data/tracks/csharp/generators/Exercises/BookStore.cs +2 -0
- data/tracks/csharp/generators/Exercises/Bowling.cs +20 -15
- data/tracks/csharp/generators/Exercises/BracketPush.cs +1 -1
- data/tracks/csharp/generators/Exercises/Change.cs +20 -0
- data/tracks/csharp/generators/Exercises/CircularBuffer.cs +74 -0
- data/tracks/csharp/generators/Exercises/Clock.cs +7 -8
- data/tracks/csharp/generators/Exercises/ComplexNumbers.cs +9 -16
- data/tracks/csharp/generators/Exercises/Connect.cs +6 -6
- data/tracks/csharp/generators/Exercises/CustomSet.cs +56 -0
- data/tracks/csharp/generators/Exercises/Dominoes.cs +2 -2
- data/tracks/csharp/generators/Exercises/Etl.cs +7 -35
- data/tracks/csharp/generators/Exercises/FlattenArray.cs +9 -13
- data/tracks/csharp/generators/Exercises/FoodChain.cs +5 -0
- data/tracks/csharp/generators/Exercises/Forth.cs +25 -0
- data/tracks/csharp/generators/Exercises/Gigasecond.cs +4 -4
- data/tracks/csharp/generators/Exercises/Grains.cs +1 -1
- data/tracks/csharp/generators/Exercises/Grep.cs +106 -0
- data/tracks/csharp/generators/Exercises/Hamming.cs +1 -1
- data/tracks/csharp/generators/Exercises/House.cs +5 -0
- data/tracks/csharp/generators/Exercises/KindergartenGarden.cs +3 -3
- data/tracks/csharp/generators/Exercises/Markdown.cs +25 -0
- data/tracks/csharp/generators/Exercises/Meetup.cs +6 -6
- data/tracks/csharp/generators/Exercises/Minesweeper.cs +14 -4
- data/tracks/csharp/generators/Exercises/OcrNumbers.cs +12 -3
- data/tracks/csharp/generators/Exercises/PascalsTriangle.cs +0 -7
- data/tracks/csharp/generators/Exercises/ProteinTranslation.cs +8 -0
- data/tracks/csharp/generators/Exercises/Proverb.cs +7 -5
- data/tracks/csharp/generators/Exercises/QueenAttack.cs +3 -3
- data/tracks/csharp/generators/Exercises/Rectangles.cs +17 -0
- data/tracks/csharp/generators/Exercises/RobotSimulator.cs +6 -6
- data/tracks/csharp/generators/Exercises/SaddlePoints.cs +2 -2
- data/tracks/csharp/generators/Exercises/Say.cs +1 -1
- data/tracks/csharp/generators/Exercises/ScaleGenerator.cs +15 -0
- data/tracks/csharp/generators/Exercises/SpiralMatrix.cs +45 -0
- data/tracks/csharp/generators/Exercises/Sublist.cs +4 -5
- data/tracks/csharp/generators/Exercises/SumOfMultiples.cs +10 -1
- data/tracks/csharp/generators/Exercises/Tournament.cs +11 -19
- data/tracks/csharp/generators/Exercises/Transpose.cs +2 -2
- data/tracks/csharp/generators/Exercises/Triangle.cs +1 -3
- data/tracks/csharp/generators/Exercises/TwelveDays.cs +3 -4
- data/tracks/csharp/generators/Exercises/TwoBucket.cs +5 -5
- data/tracks/csharp/generators/Exercises/TwoFer.cs +11 -2
- data/tracks/csharp/generators/Exercises/VariableLengthQuantity.cs +44 -0
- data/tracks/csharp/generators/Exercises/Yacht.cs +11 -10
- data/tracks/csharp/generators/Exercises/ZebraPuzzle.cs +19 -0
- data/tracks/csharp/generators/GeneratorExercise.cs +6 -6
- data/tracks/csharp/generators/Input/CanonicalData.cs +6 -9
- data/tracks/csharp/generators/Input/CanonicalDataCase.cs +13 -46
- data/tracks/csharp/generators/Input/CanonicalDataCaseParser.cs +170 -0
- data/tracks/csharp/generators/Input/CanonicalDataFile.cs +1 -2
- data/tracks/csharp/generators/Input/CanonicalDataParser.cs +16 -12
- data/tracks/csharp/generators/Input/ConfigFile.cs +0 -5
- data/tracks/csharp/generators/Input/ConvertHelper.cs +20 -0
- data/tracks/csharp/generators/Output/Templates/_TestClassDisposable.liquid +14 -0
- data/tracks/csharp/generators/Output/TestMethodBodyData.cs +11 -14
- data/tracks/csharp/generators/Output/ValueFormatter.cs +20 -7
- data/tracks/delphi/config.json +22 -0
- data/tracks/delphi/exercises/grade-school/GradeSchool.dpr +60 -0
- data/tracks/delphi/exercises/grade-school/README.md +62 -0
- data/tracks/delphi/exercises/grade-school/uGradeSchoolExample.pas +134 -0
- data/tracks/delphi/exercises/grade-school/uGradeSchoolTest.pas +150 -0
- data/tracks/delphi/exercises/hamming/README.md +4 -3
- data/tracks/delphi/exercises/proverb/Proverb.dpr +60 -0
- data/tracks/delphi/exercises/proverb/README.md +44 -0
- data/tracks/delphi/exercises/proverb/uProverbExample.pas +60 -0
- data/tracks/delphi/exercises/proverb/uProverbTests.pas +124 -0
- data/tracks/go/exercises/bracket-push/README.md +3 -2
- data/tracks/go/exercises/bracket-push/cases_test.go +7 -2
- data/tracks/go/exercises/isbn-verifier/cases_test.go +4 -3
- data/tracks/go/exercises/yacht/cases_test.go +8 -2
- data/tracks/java/exercises/armstrong-numbers/README.md +1 -1
- data/tracks/java/exercises/binary-search-tree/src/test/java/BinarySearchTreeTest.java +22 -22
- data/tracks/java/exercises/bracket-push/README.md +3 -2
- data/tracks/java/exercises/crypto-square/README.md +23 -19
- data/tracks/java/exercises/grade-school/src/test/java/SchoolTest.java +1 -1
- data/tracks/java/exercises/poker/.meta/{version.txt → version} +0 -0
- data/tracks/java/exercises/queen-attack/src/test/java/QueenAttackCalculatorTest.java +7 -7
- data/tracks/java/exercises/rail-fence-cipher/.meta/version +1 -0
- data/tracks/java/exercises/robot-simulator/src/test/java/RobotTest.java +45 -45
- data/tracks/nim/config.json +24 -0
- data/tracks/nim/exercises/armstrong-numbers/README.md +18 -0
- data/tracks/nim/exercises/armstrong-numbers/armstrong_number_test.nim +29 -0
- data/tracks/nim/exercises/armstrong-numbers/example.nim +11 -0
- data/tracks/nim/exercises/leap/leap_test.nim +12 -10
- data/tracks/nim/exercises/two-fer/README.md +19 -0
- data/tracks/nim/exercises/two-fer/example.nim +3 -0
- data/tracks/nim/exercises/two-fer/two_fer_test.nim +16 -0
- data/tracks/python/.travis.yml +0 -1
- data/tracks/python/README.md +1 -1
- data/tracks/python/config/exercise_readme.go.tmpl +1 -1
- data/tracks/python/docs/INSTALLATION.md +1 -1
- data/tracks/python/exercises/accumulate/README.md +1 -1
- data/tracks/python/exercises/acronym/README.md +1 -1
- data/tracks/python/exercises/all-your-base/README.md +1 -1
- data/tracks/python/exercises/allergies/README.md +1 -1
- data/tracks/python/exercises/alphametics/README.md +1 -1
- data/tracks/python/exercises/anagram/README.md +1 -1
- data/tracks/python/exercises/armstrong-numbers/README.md +2 -2
- data/tracks/python/exercises/atbash-cipher/README.md +1 -1
- data/tracks/python/exercises/bank-account/README.md +1 -1
- data/tracks/python/exercises/beer-song/README.md +1 -1
- data/tracks/python/exercises/binary-search-tree/README.md +1 -1
- data/tracks/python/exercises/binary-search/README.md +1 -1
- data/tracks/python/exercises/binary/README.md +1 -1
- data/tracks/python/exercises/bob/README.md +1 -1
- data/tracks/python/exercises/book-store/README.md +1 -1
- data/tracks/python/exercises/bowling/README.md +1 -1
- data/tracks/python/exercises/bracket-push/README.md +4 -3
- data/tracks/python/exercises/change/README.md +1 -1
- data/tracks/python/exercises/circular-buffer/README.md +1 -1
- data/tracks/python/exercises/clock/README.md +1 -1
- data/tracks/python/exercises/collatz-conjecture/README.md +1 -1
- data/tracks/python/exercises/complex-numbers/README.md +1 -1
- data/tracks/python/exercises/connect/README.md +1 -1
- data/tracks/python/exercises/crypto-square/README.md +1 -1
- data/tracks/python/exercises/custom-set/README.md +1 -1
- data/tracks/python/exercises/diamond/README.md +1 -1
- data/tracks/python/exercises/difference-of-squares/README.md +1 -1
- data/tracks/python/exercises/diffie-hellman/README.md +1 -1
- data/tracks/python/exercises/dominoes/README.md +1 -1
- data/tracks/python/exercises/dot-dsl/README.md +1 -1
- data/tracks/python/exercises/error-handling/README.md +1 -1
- data/tracks/python/exercises/etl/README.md +1 -1
- data/tracks/python/exercises/flatten-array/README.md +1 -1
- data/tracks/python/exercises/food-chain/README.md +1 -1
- data/tracks/python/exercises/forth/README.md +1 -1
- data/tracks/python/exercises/gigasecond/README.md +1 -1
- data/tracks/python/exercises/go-counting/README.md +1 -1
- data/tracks/python/exercises/grade-school/README.md +1 -1
- data/tracks/python/exercises/grains/README.md +1 -1
- data/tracks/python/exercises/grep/README.md +1 -1
- data/tracks/python/exercises/hamming/README.md +1 -1
- data/tracks/python/exercises/hello-world/README.md +1 -1
- data/tracks/python/exercises/hexadecimal/README.md +1 -1
- data/tracks/python/exercises/house/README.md +1 -1
- data/tracks/python/exercises/isbn-verifier/README.md +1 -1
- data/tracks/python/exercises/isogram/README.md +1 -1
- data/tracks/python/exercises/kindergarten-garden/README.md +1 -1
- data/tracks/python/exercises/largest-series-product/README.md +1 -1
- data/tracks/python/exercises/leap/README.md +1 -1
- data/tracks/python/exercises/linked-list/README.md +1 -1
- data/tracks/python/exercises/list-ops/README.md +1 -1
- data/tracks/python/exercises/luhn/README.md +1 -1
- data/tracks/python/exercises/markdown/README.md +1 -1
- data/tracks/python/exercises/matrix/README.md +1 -1
- data/tracks/python/exercises/meetup/README.md +1 -1
- data/tracks/python/exercises/minesweeper/README.md +1 -1
- data/tracks/python/exercises/nth-prime/README.md +1 -1
- data/tracks/python/exercises/nucleotide-count/README.md +1 -1
- data/tracks/python/exercises/ocr-numbers/README.md +1 -1
- data/tracks/python/exercises/octal/README.md +1 -1
- data/tracks/python/exercises/palindrome-products/README.md +1 -1
- data/tracks/python/exercises/pangram/README.md +1 -1
- data/tracks/python/exercises/parallel-letter-frequency/README.md +1 -1
- data/tracks/python/exercises/pascals-triangle/README.md +1 -1
- data/tracks/python/exercises/perfect-numbers/README.md +1 -1
- data/tracks/python/exercises/phone-number/README.md +1 -1
- data/tracks/python/exercises/pig-latin/README.md +1 -1
- data/tracks/python/exercises/point-mutations/README.md +1 -1
- data/tracks/python/exercises/poker/README.md +1 -1
- data/tracks/python/exercises/pov/README.md +1 -1
- data/tracks/python/exercises/prime-factors/README.md +1 -1
- data/tracks/python/exercises/protein-translation/README.md +1 -1
- data/tracks/python/exercises/proverb/README.md +1 -1
- data/tracks/python/exercises/pythagorean-triplet/README.md +1 -1
- data/tracks/python/exercises/queen-attack/README.md +1 -1
- data/tracks/python/exercises/rail-fence-cipher/README.md +1 -1
- data/tracks/python/exercises/raindrops/README.md +1 -1
- data/tracks/python/exercises/rational-numbers/README.md +1 -1
- data/tracks/python/exercises/react/README.md +1 -1
- data/tracks/python/exercises/rectangles/README.md +1 -1
- data/tracks/python/exercises/reverse-string/README.md +1 -1
- data/tracks/python/exercises/rna-transcription/README.md +1 -1
- data/tracks/python/exercises/robot-name/README.md +1 -1
- data/tracks/python/exercises/robot-simulator/README.md +1 -1
- data/tracks/python/exercises/roman-numerals/README.md +1 -1
- data/tracks/python/exercises/rotational-cipher/README.md +1 -1
- data/tracks/python/exercises/run-length-encoding/README.md +1 -1
- data/tracks/python/exercises/saddle-points/README.md +1 -1
- data/tracks/python/exercises/say/README.md +1 -1
- data/tracks/python/exercises/scale-generator/README.md +1 -1
- data/tracks/python/exercises/scrabble-score/README.md +1 -1
- data/tracks/python/exercises/secret-handshake/README.md +1 -1
- data/tracks/python/exercises/series/README.md +1 -1
- data/tracks/python/exercises/sgf-parsing/README.md +1 -1
- data/tracks/python/exercises/sieve/README.md +1 -1
- data/tracks/python/exercises/simple-cipher/README.md +1 -1
- data/tracks/python/exercises/simple-linked-list/README.md +1 -1
- data/tracks/python/exercises/space-age/README.md +1 -1
- data/tracks/python/exercises/spiral-matrix/README.md +1 -1
- data/tracks/python/exercises/strain/README.md +1 -1
- data/tracks/python/exercises/sublist/README.md +1 -1
- data/tracks/python/exercises/sum-of-multiples/README.md +1 -1
- data/tracks/python/exercises/tournament/README.md +1 -1
- data/tracks/python/exercises/transpose/README.md +1 -1
- data/tracks/python/exercises/tree-building/README.md +1 -1
- data/tracks/python/exercises/triangle/README.md +1 -1
- data/tracks/python/exercises/trinary/README.md +1 -1
- data/tracks/python/exercises/twelve-days/README.md +1 -1
- data/tracks/python/exercises/two-bucket/README.md +1 -1
- data/tracks/python/exercises/two-fer/README.md +1 -1
- data/tracks/python/exercises/variable-length-quantity/README.md +1 -1
- data/tracks/python/exercises/word-count/README.md +1 -1
- data/tracks/python/exercises/word-search/README.md +1 -1
- data/tracks/python/exercises/wordy/README.md +1 -1
- data/tracks/python/exercises/yacht/README.md +1 -1
- data/tracks/python/exercises/zebra-puzzle/README.md +1 -1
- data/tracks/python/exercises/zipper/README.md +1 -1
- data/tracks/python/requirements-travis.txt +1 -1
- data/tracks/swift/exercises/scale-generator/Tests/ScaleGeneratorTests/ScaleGeneratorTests.swift +1 -1
- metadata +32 -8
- data/tracks/csharp/generators/Input/CanonicalDataCaseJson.cs +0 -73
- data/tracks/csharp/generators/Input/CanonicalDataCaseJsonConverter.cs +0 -49
- data/tracks/csharp/generators/Input/CanonicalDataCasesJson.cs +0 -58
- data/tracks/csharp/generators/Input/CanonicalDataCasesJsonConverter.cs +0 -17
- data/tracks/java/exercises/go-counting/src/main/java/.keep +0 -0
data/tracks/nim/config.json
CHANGED
@@ -229,6 +229,30 @@
|
|
229
229
|
"topics": [
|
230
230
|
"strings"
|
231
231
|
]
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"uuid": "b7ad6238-bb8e-4629-8a6f-5eddb8568d87",
|
235
|
+
"slug": "two-fer",
|
236
|
+
"core": true,
|
237
|
+
"unlocked_by": null,
|
238
|
+
"difficulty": 1,
|
239
|
+
"topics": [
|
240
|
+
"conditionals",
|
241
|
+
"optional_values",
|
242
|
+
"text_formatting"
|
243
|
+
]
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"uuid": "83f70468-941b-4d7d-9df7-6f8b6a54f6bc",
|
247
|
+
"slug": "armstrong-numbers",
|
248
|
+
"core": false,
|
249
|
+
"unlocked_by": null,
|
250
|
+
"difficulty": 1,
|
251
|
+
"topics": [
|
252
|
+
"mathematics",
|
253
|
+
"algorithms",
|
254
|
+
"loops"
|
255
|
+
]
|
232
256
|
}
|
233
257
|
]
|
234
258
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Armstrong Numbers
|
2
|
+
|
3
|
+
An [Armstrong number](https://en.wikipedia.org/wiki/Narcissistic_number) is a number that is the sum of its own digits each raised to the power of the number of digits.
|
4
|
+
|
5
|
+
For example:
|
6
|
+
|
7
|
+
- 9 is an Armstrong number, because `9 = 9^1 = 9`
|
8
|
+
- 10 is *not* an Armstrong number, because `10 != 1^2 + 0^2 = 2`
|
9
|
+
- 153 is an Armstrong number, because: `153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153`
|
10
|
+
- 154 is *not* an Armstrong number, because: `154 != 1^3 + 5^3 + 4^3 = 1 + 125 + 64 = 190`
|
11
|
+
|
12
|
+
Write some code to determine whether a number is an Armstrong number.
|
13
|
+
## Source
|
14
|
+
|
15
|
+
Wikipedia [https://en.wikipedia.org/wiki/Narcissistic_number](https://en.wikipedia.org/wiki/Narcissistic_number)
|
16
|
+
|
17
|
+
## Submitting Incomplete Solutions
|
18
|
+
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import unittest
|
2
|
+
|
3
|
+
import armstrong_numbers
|
4
|
+
|
5
|
+
suite "Armstrong Numbers":
|
6
|
+
|
7
|
+
test "Single digit numbers are Armstrong numbers":
|
8
|
+
check 5.isArmstrongNumber == true
|
9
|
+
|
10
|
+
test "There are no 2 digit Armstrong numbers":
|
11
|
+
check 10.isArmstrongNumber == false
|
12
|
+
|
13
|
+
test "Three digit number that is an Armstrong number":
|
14
|
+
check 153.isArmstrongNumber == true
|
15
|
+
|
16
|
+
test "Three digit number that is not an Armstrong number":
|
17
|
+
check 100.isArmstrongNumber == false
|
18
|
+
|
19
|
+
test "Four digit number that is an Armstrong number":
|
20
|
+
check 9474.isArmstrongNumber == true
|
21
|
+
|
22
|
+
test "Four digit number that is not an Armstrong number":
|
23
|
+
check 9475.isArmstrongNumber == false
|
24
|
+
|
25
|
+
test "Seven digit number that is an Armstrong number":
|
26
|
+
check 9926315.isArmstrongNumber == true
|
27
|
+
|
28
|
+
test "Four digit number that is an Armstrong number":
|
29
|
+
check 9926314.isArmstrongNumber == false
|
@@ -1,14 +1,16 @@
|
|
1
1
|
import unittest
|
2
2
|
from leap import isLeapYear
|
3
3
|
|
4
|
-
|
5
|
-
check isLeapYear(1996)
|
4
|
+
suite "Leap":
|
6
5
|
|
7
|
-
test "
|
8
|
-
|
9
|
-
|
10
|
-
test "
|
11
|
-
|
12
|
-
|
13
|
-
test "
|
14
|
-
|
6
|
+
test "year not divisible by 4: common year":
|
7
|
+
check isLeapYear(2015) == false
|
8
|
+
|
9
|
+
test "year divisible by 4, not divisible by 100: leap year":
|
10
|
+
check isLeapYear(1996) == true
|
11
|
+
|
12
|
+
test "year divisible by 100, not divisible by 400: common year":
|
13
|
+
check isLeapYear(2100) == false
|
14
|
+
|
15
|
+
test "year divisible by 400: leap year":
|
16
|
+
check isLeapYear(2000) == true
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Two Fer
|
2
|
+
|
3
|
+
`Two-fer` or `2-fer` is short for two for one. One for you and one for me.
|
4
|
+
|
5
|
+
```text
|
6
|
+
"One for X, one for me."
|
7
|
+
```
|
8
|
+
|
9
|
+
When X is a name or "you".
|
10
|
+
|
11
|
+
If the given name is "Alice", the result should be "One for Alice, one for me."
|
12
|
+
If no name is given, the result should be "One for you, one for me."
|
13
|
+
|
14
|
+
## Source
|
15
|
+
|
16
|
+
[https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer)
|
17
|
+
|
18
|
+
## Submitting Incomplete Solutions
|
19
|
+
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import unittest
|
2
|
+
|
3
|
+
import two_fer
|
4
|
+
|
5
|
+
suite "Two Fer":
|
6
|
+
|
7
|
+
test "no name given":
|
8
|
+
check twoFer() == "One for you, one for me."
|
9
|
+
|
10
|
+
test "a name given":
|
11
|
+
let name = "Alice"
|
12
|
+
check twoFer(name) == "One for Alice, one for me."
|
13
|
+
|
14
|
+
test "another name given":
|
15
|
+
let name = "Bob"
|
16
|
+
check twoFer(name) == "One for Bob, one for me."
|
data/tracks/python/.travis.yml
CHANGED
data/tracks/python/README.md
CHANGED
@@ -29,7 +29,7 @@ A list of missing exercise can be found here: http://exercism.io/languages/pytho
|
|
29
29
|
|
30
30
|
### Testing
|
31
31
|
|
32
|
-
All exercises must be compatible with Python versions 2.7 and 3.
|
32
|
+
All exercises must be compatible with Python versions 2.7 and 3.4 upwards.
|
33
33
|
|
34
34
|
To test a single exercise (e.g., with Python 2.7):
|
35
35
|
```
|
@@ -23,7 +23,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
23
23
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
24
24
|
|
25
25
|
- Python 2.7: `py.test {{ .Spec.SnakeCaseName }}_test.py`
|
26
|
-
- Python 3.
|
26
|
+
- Python 3.4+: `pytest {{ .Spec.SnakeCaseName }}_test.py`
|
27
27
|
|
28
28
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
29
29
|
`python -m pytest {{ .Spec.SnakeCaseName }}_test.py`
|
@@ -2,4 +2,4 @@
|
|
2
2
|
|
3
3
|
If Python isn't already available on your system follow the instructions at [the Hitchhiker's Guide to Python](http://docs.python-guide.org/en/latest/starting/installation/) to install Python on your computer.
|
4
4
|
|
5
|
-
Exercism currently supports Python2.7 and Python 3.
|
5
|
+
Exercism currently supports Python2.7 and Python 3.4+.
|
@@ -44,7 +44,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
44
44
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
45
45
|
|
46
46
|
- Python 2.7: `py.test accumulate_test.py`
|
47
|
-
- Python 3.
|
47
|
+
- Python 3.4+: `pytest accumulate_test.py`
|
48
48
|
|
49
49
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
50
50
|
`python -m pytest accumulate_test.py`
|
@@ -26,7 +26,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
26
26
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
27
27
|
|
28
28
|
- Python 2.7: `py.test acronym_test.py`
|
29
|
-
- Python 3.
|
29
|
+
- Python 3.4+: `pytest acronym_test.py`
|
30
30
|
|
31
31
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
32
32
|
`python -m pytest acronym_test.py`
|
@@ -50,7 +50,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
50
50
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
51
51
|
|
52
52
|
- Python 2.7: `py.test all_your_base_test.py`
|
53
|
-
- Python 3.
|
53
|
+
- Python 3.4+: `pytest all_your_base_test.py`
|
54
54
|
|
55
55
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
56
56
|
`python -m pytest all_your_base_test.py`
|
@@ -48,7 +48,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
48
48
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
49
49
|
|
50
50
|
- Python 2.7: `py.test allergies_test.py`
|
51
|
-
- Python 3.
|
51
|
+
- Python 3.4+: `pytest allergies_test.py`
|
52
52
|
|
53
53
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
54
54
|
`python -m pytest allergies_test.py`
|
@@ -50,7 +50,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
50
50
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
51
51
|
|
52
52
|
- Python 2.7: `py.test alphametics_test.py`
|
53
|
-
- Python 3.
|
53
|
+
- Python 3.4+: `pytest alphametics_test.py`
|
54
54
|
|
55
55
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
56
56
|
`python -m pytest alphametics_test.py`
|
@@ -25,7 +25,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
25
25
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
26
26
|
|
27
27
|
- Python 2.7: `py.test anagram_test.py`
|
28
|
-
- Python 3.
|
28
|
+
- Python 3.4+: `pytest anagram_test.py`
|
29
29
|
|
30
30
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
31
31
|
`python -m pytest anagram_test.py`
|
@@ -5,7 +5,7 @@ An [Armstrong number](https://en.wikipedia.org/wiki/Narcissistic_number) is a nu
|
|
5
5
|
For example:
|
6
6
|
|
7
7
|
- 9 is an Armstrong number, because `9 = 9^1 = 9`
|
8
|
-
- 10 is *not* an Armstrong number, because `10 != 1^2 + 0^2 =
|
8
|
+
- 10 is *not* an Armstrong number, because `10 != 1^2 + 0^2 = 1`
|
9
9
|
- 153 is an Armstrong number, because: `153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153`
|
10
10
|
- 154 is *not* an Armstrong number, because: `154 != 1^3 + 5^3 + 4^3 = 1 + 125 + 64 = 190`
|
11
11
|
|
@@ -30,7 +30,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
30
30
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
31
31
|
|
32
32
|
- Python 2.7: `py.test armstrong_numbers_test.py`
|
33
|
-
- Python 3.
|
33
|
+
- Python 3.4+: `pytest armstrong_numbers_test.py`
|
34
34
|
|
35
35
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
36
36
|
`python -m pytest armstrong_numbers_test.py`
|
@@ -47,7 +47,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
47
47
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
48
48
|
|
49
49
|
- Python 2.7: `py.test atbash_cipher_test.py`
|
50
|
-
- Python 3.
|
50
|
+
- Python 3.4+: `pytest atbash_cipher_test.py`
|
51
51
|
|
52
52
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
53
53
|
`python -m pytest atbash_cipher_test.py`
|
@@ -45,7 +45,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
45
45
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
46
46
|
|
47
47
|
- Python 2.7: `py.test bank_account_test.py`
|
48
|
-
- Python 3.
|
48
|
+
- Python 3.4+: `pytest bank_account_test.py`
|
49
49
|
|
50
50
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
51
51
|
`python -m pytest bank_account_test.py`
|
@@ -339,7 +339,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
339
339
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
340
340
|
|
341
341
|
- Python 2.7: `py.test beer_song_test.py`
|
342
|
-
- Python 3.
|
342
|
+
- Python 3.4+: `pytest beer_song_test.py`
|
343
343
|
|
344
344
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
345
345
|
`python -m pytest beer_song_test.py`
|
@@ -72,7 +72,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
72
72
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
73
73
|
|
74
74
|
- Python 2.7: `py.test binary_search_tree_test.py`
|
75
|
-
- Python 3.
|
75
|
+
- Python 3.4+: `pytest binary_search_tree_test.py`
|
76
76
|
|
77
77
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
78
78
|
`python -m pytest binary_search_tree_test.py`
|
@@ -53,7 +53,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
53
53
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
54
54
|
|
55
55
|
- Python 2.7: `py.test binary_search_test.py`
|
56
|
-
- Python 3.
|
56
|
+
- Python 3.4+: `pytest binary_search_test.py`
|
57
57
|
|
58
58
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
59
59
|
`python -m pytest binary_search_test.py`
|
@@ -49,7 +49,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
49
49
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
50
50
|
|
51
51
|
- Python 2.7: `py.test binary_test.py`
|
52
|
-
- Python 3.
|
52
|
+
- Python 3.4+: `pytest binary_test.py`
|
53
53
|
|
54
54
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
55
55
|
`python -m pytest binary_test.py`
|
@@ -32,7 +32,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
32
32
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
33
33
|
|
34
34
|
- Python 2.7: `py.test bob_test.py`
|
35
|
-
- Python 3.
|
35
|
+
- Python 3.4+: `pytest bob_test.py`
|
36
36
|
|
37
37
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
38
38
|
`python -m pytest bob_test.py`
|
@@ -86,7 +86,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
86
86
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
87
87
|
|
88
88
|
- Python 2.7: `py.test book_store_test.py`
|
89
|
-
- Python 3.
|
89
|
+
- Python 3.4+: `pytest book_store_test.py`
|
90
90
|
|
91
91
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
92
92
|
`python -m pytest book_store_test.py`
|
@@ -79,7 +79,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
79
79
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
80
80
|
|
81
81
|
- Python 2.7: `py.test bowling_test.py`
|
82
|
-
- Python 3.
|
82
|
+
- Python 3.4+: `pytest bowling_test.py`
|
83
83
|
|
84
84
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
85
85
|
`python -m pytest bowling_test.py`
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# Bracket Push
|
2
2
|
|
3
|
-
Given a string containing brackets `[]`, braces `{}
|
4
|
-
verify that all
|
3
|
+
Given a string containing brackets `[]`, braces `{}`, parentheses `()`,
|
4
|
+
or any combination thereof, verify that any and all pairs are matched
|
5
|
+
and nested correctly.
|
5
6
|
|
6
7
|
## Exception messages
|
7
8
|
|
@@ -22,7 +23,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
22
23
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
23
24
|
|
24
25
|
- Python 2.7: `py.test bracket_push_test.py`
|
25
|
-
- Python 3.
|
26
|
+
- Python 3.4+: `pytest bracket_push_test.py`
|
26
27
|
|
27
28
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
28
29
|
`python -m pytest bracket_push_test.py`
|
@@ -35,7 +35,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
35
35
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
36
36
|
|
37
37
|
- Python 2.7: `py.test change_test.py`
|
38
|
-
- Python 3.
|
38
|
+
- Python 3.4+: `pytest change_test.py`
|
39
39
|
|
40
40
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
41
41
|
`python -m pytest change_test.py`
|
@@ -69,7 +69,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
69
69
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
70
70
|
|
71
71
|
- Python 2.7: `py.test circular_buffer_test.py`
|
72
|
-
- Python 3.
|
72
|
+
- Python 3.4+: `pytest circular_buffer_test.py`
|
73
73
|
|
74
74
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
75
75
|
`python -m pytest circular_buffer_test.py`
|
@@ -25,7 +25,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
25
25
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
26
26
|
|
27
27
|
- Python 2.7: `py.test clock_test.py`
|
28
|
-
- Python 3.
|
28
|
+
- Python 3.4+: `pytest clock_test.py`
|
29
29
|
|
30
30
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
31
31
|
`python -m pytest clock_test.py`
|
@@ -50,7 +50,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
50
50
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
51
51
|
|
52
52
|
- Python 2.7: `py.test collatz_conjecture_test.py`
|
53
|
-
- Python 3.
|
53
|
+
- Python 3.4+: `pytest collatz_conjecture_test.py`
|
54
54
|
|
55
55
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
56
56
|
`python -m pytest collatz_conjecture_test.py`
|
@@ -55,7 +55,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
55
55
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
56
56
|
|
57
57
|
- Python 2.7: `py.test complex_numbers_test.py`
|
58
|
-
- Python 3.
|
58
|
+
- Python 3.4+: `pytest complex_numbers_test.py`
|
59
59
|
|
60
60
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
61
61
|
`python -m pytest complex_numbers_test.py`
|
@@ -49,7 +49,7 @@ raise Exception("Meaningful message indicating the source of the error")
|
|
49
49
|
To run the tests, run the appropriate command below ([why they are different](https://github.com/pytest-dev/pytest/issues/1629#issue-161422224)):
|
50
50
|
|
51
51
|
- Python 2.7: `py.test connect_test.py`
|
52
|
-
- Python 3.
|
52
|
+
- Python 3.4+: `pytest connect_test.py`
|
53
53
|
|
54
54
|
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
|
55
55
|
`python -m pytest connect_test.py`
|