trackler 2.0.6.11 → 2.0.6.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/common/CONTRIBUTING.md +6 -1
- data/common/exercises/difference-of-squares/metadata.yml +1 -1
- data/common/exercises/luhn/canonical-data.json +2 -2
- data/common/exercises/rectangles/canonical-data.json +25 -0
- data/common/exercises/rectangles/description.md +11 -3
- data/lib/trackler/version.rb +1 -1
- data/tracks/ceylon/config.json +9 -0
- data/tracks/ceylon/exercises/anagram/source/anagram/AnagramTest.ceylon +38 -39
- data/tracks/ceylon/exercises/bracket-push/source/bracketpush/BracketsTest.ceylon +28 -29
- data/tracks/ceylon/exercises/largest-series-product/example/Series.ceylon +13 -0
- data/tracks/ceylon/exercises/largest-series-product/source/largestseriesproduct/Series.ceylon +5 -0
- data/tracks/ceylon/exercises/largest-series-product/source/largestseriesproduct/SeriesTest.ceylon +30 -0
- data/tracks/ceylon/exercises/largest-series-product/source/largestseriesproduct/module.ceylon +3 -0
- data/tracks/csharp/config.json +41 -0
- data/tracks/csharp/exercises/alphametics/AlphameticsTest.cs +122 -0
- data/tracks/csharp/exercises/alphametics/Example.cs +139 -0
- data/tracks/csharp/exercises/dot-dsl/DotDslTest.cs +91 -0
- data/tracks/csharp/exercises/dot-dsl/Example.cs +90 -0
- data/tracks/csharp/exercises/dot-dsl/HINTS.md +2 -0
- data/tracks/csharp/exercises/error-handling/ErrorHandlingTest.cs +65 -0
- data/tracks/csharp/exercises/error-handling/Example.cs +34 -0
- data/tracks/csharp/exercises/exercises.csproj +1 -1
- data/tracks/csharp/exercises/hangman/Example.cs +85 -0
- data/tracks/csharp/exercises/hangman/HangmanTest.cs +140 -0
- data/tracks/csharp/exercises/ledger/Example.cs +106 -0
- data/tracks/csharp/exercises/ledger/Ledger.cs +166 -0
- data/tracks/csharp/exercises/ledger/LedgerTest.cs +168 -0
- data/tracks/elixir/exercises/allergies/allergies_test.exs +2 -2
- data/tracks/elixir/exercises/markdown/example.exs +3 -3
- data/tracks/elixir/exercises/phone-number/example.exs +0 -2
- data/tracks/elixir/exercises/queen-attack/example.exs +1 -1
- data/tracks/elixir/exercises/wordy/example.exs +6 -6
- data/tracks/elixir/exercises/zipper/zipper_test.exs +12 -12
- data/tracks/elixir/mix.exs +1 -1
- data/tracks/fsharp/config.json +8 -8
- data/tracks/fsharp/docs/ABOUT.md +4 -0
- data/tracks/fsharp/exercises/alphametics/AlphameticsTest.fs +33 -13
- data/tracks/fsharp/exercises/alphametics/Example.fs +29 -64
- data/tracks/fsharp/exercises/binary-search-tree/BinarySearchTreeTest.fs +14 -14
- data/tracks/fsharp/exercises/binary-search-tree/Example.fs +17 -14
- data/tracks/fsharp/exercises/triangle/TriangleTest.fs +0 -5
- data/tracks/go/README.md +3 -3
- data/tracks/go/config.json +10 -3
- data/tracks/go/exercises/acronym/acronym.go +5 -0
- data/tracks/go/exercises/bob/example_gen.go +1 -1
- data/tracks/go/exercises/clock/example_gen.go +1 -1
- data/tracks/go/exercises/connect/example_gen.go +1 -1
- data/tracks/go/exercises/custom-set/example_gen.go +1 -1
- data/tracks/go/exercises/gigasecond/example_gen.go +1 -1
- data/tracks/go/exercises/hamming/example_gen.go +1 -1
- data/tracks/go/exercises/largest-series-product/example_gen.go +1 -1
- data/tracks/go/exercises/leap/cases_test.go +5 -7
- data/tracks/go/exercises/leap/example.go +1 -1
- data/tracks/go/exercises/leap/example_gen.go +1 -1
- data/tracks/go/exercises/leap/leap.go +1 -1
- data/tracks/go/exercises/leap/leap_test.go +1 -1
- data/tracks/go/exercises/meetup/example_gen.go +1 -1
- data/tracks/go/exercises/nucleotide-count/nucleotide_count_test.go +0 -5
- data/tracks/go/exercises/pangram/pangram.go +5 -0
- data/tracks/go/exercises/raindrops/example_gen.go +1 -1
- data/tracks/go/exercises/rna-transcription/example_gen.go +1 -1
- data/tracks/go/exercises/roman-numerals/example_gen.go +1 -1
- data/tracks/go/exercises/word-count/example_gen.go +1 -1
- data/tracks/go/gen/gen.go +3 -2
- data/tracks/haskell/exercises/accumulate/src/Accumulate.hs +1 -1
- data/tracks/haskell/exercises/all-your-base/src/Base.hs +1 -1
- data/tracks/haskell/exercises/allergies/src/Allergies.hs +2 -2
- data/tracks/haskell/exercises/alphametics/src/Alphametics.hs +1 -1
- data/tracks/haskell/exercises/anagram/src/Anagram.hs +1 -1
- data/tracks/haskell/exercises/atbash-cipher/src/Atbash.hs +2 -2
- data/tracks/haskell/exercises/bank-account/src/BankAccount.hs +4 -4
- data/tracks/haskell/exercises/binary/src/Binary.hs +1 -1
- data/tracks/haskell/exercises/binary-search-tree/src/BST.hs +8 -8
- data/tracks/haskell/exercises/bob/src/Bob.hs +1 -1
- data/tracks/haskell/exercises/bowling/src/Bowling.hs +1 -1
- data/tracks/haskell/exercises/change/src/Change.hs +1 -1
- data/tracks/haskell/exercises/clock/src/Clock.hs +4 -4
- data/tracks/haskell/exercises/connect/src/Connect.hs +1 -1
- data/tracks/haskell/exercises/crypto-square/src/CryptoSquare.hs +1 -1
- data/tracks/haskell/exercises/custom-set/src/CustomSet.hs +13 -13
- data/tracks/haskell/exercises/difference-of-squares/src/Squares.hs +3 -3
- data/tracks/haskell/exercises/dominoes/src/Dominoes.hs +1 -1
- data/tracks/haskell/exercises/etl/src/ETL.hs +1 -1
- data/tracks/haskell/exercises/forth/src/Forth.hs +3 -3
- data/tracks/haskell/exercises/gigasecond/src/Gigasecond.hs +1 -1
- data/tracks/haskell/exercises/go-counting/src/Counting.hs +2 -2
- data/tracks/haskell/exercises/grade-school/src/School.hs +4 -4
- data/tracks/haskell/exercises/grains/src/Grains.hs +2 -2
- data/tracks/haskell/exercises/hamming/src/Hamming.hs +1 -1
- data/tracks/haskell/exercises/hexadecimal/src/Hexadecimal.hs +1 -1
- data/tracks/haskell/exercises/kindergarten-garden/src/Garden.hs +3 -3
- data/tracks/haskell/exercises/largest-series-product/src/Series.hs +1 -1
- data/tracks/haskell/exercises/leap/src/LeapYear.hs +1 -1
- data/tracks/haskell/exercises/lens-person/src/Person.hs +4 -4
- data/tracks/haskell/exercises/linked-list/src/Deque.hs +5 -5
- data/tracks/haskell/exercises/list-ops/src/ListOps.hs +8 -8
- data/tracks/haskell/exercises/luhn/src/Luhn.hs +5 -5
- data/tracks/haskell/exercises/matrix/src/Matrix.hs +10 -10
- data/tracks/haskell/exercises/meetup/src/Meetup.hs +1 -1
- data/tracks/haskell/exercises/minesweeper/src/Minesweeper.hs +1 -1
- data/tracks/haskell/exercises/nth-prime/src/Prime.hs +1 -1
- data/tracks/haskell/exercises/nucleotide-count/src/DNA.hs +2 -2
- data/tracks/haskell/exercises/ocr-numbers/src/OCR.hs +1 -1
- data/tracks/haskell/exercises/octal/src/Octal.hs +2 -2
- data/tracks/haskell/exercises/palindrome-products/src/Palindromes.hs +2 -2
- data/tracks/haskell/exercises/parallel-letter-frequency/src/Frequency.hs +1 -1
- data/tracks/haskell/exercises/pascals-triangle/src/Triangle.hs +1 -1
- data/tracks/haskell/exercises/phone-number/src/Phone.hs +3 -3
- data/tracks/haskell/exercises/pig-latin/src/PigLatin.hs +1 -1
- data/tracks/haskell/exercises/pov/src/POV.hs +2 -2
- data/tracks/haskell/exercises/prime-factors/src/PrimeFactors.hs +1 -1
- data/tracks/haskell/exercises/pythagorean-triplet/src/Triplet.hs +3 -3
- data/tracks/haskell/exercises/queen-attack/src/Queens.hs +2 -2
- data/tracks/haskell/exercises/raindrops/src/Raindrops.hs +1 -1
- data/tracks/haskell/exercises/rna-transcription/src/DNA.hs +1 -1
- data/tracks/haskell/exercises/robot-name/src/Robot.hs +3 -3
- data/tracks/haskell/exercises/robot-simulator/src/Robot.hs +6 -6
- data/tracks/haskell/exercises/roman-numerals/src/Roman.hs +1 -1
- data/tracks/haskell/exercises/run-length-encoding/src/RunLength.hs +2 -2
- data/tracks/haskell/exercises/saddle-points/src/Matrix.hs +1 -1
- data/tracks/haskell/exercises/say/src/Say.hs +1 -1
- data/tracks/haskell/exercises/scrabble-score/src/Scrabble.hs +2 -2
- data/tracks/haskell/exercises/secret-handshake/src/SecretHandshake.hs +1 -1
- data/tracks/haskell/exercises/series/src/Series.hs +1 -1
- data/tracks/haskell/exercises/sgf-parsing/src/Sgf.hs +1 -1
- data/tracks/haskell/exercises/sieve/src/Sieve.hs +1 -1
- data/tracks/haskell/exercises/simple-cipher/src/Cipher.hs +3 -3
- data/tracks/haskell/exercises/simple-linked-list/src/LinkedList.hs +8 -8
- data/tracks/haskell/exercises/space-age/src/SpaceAge.hs +1 -1
- data/tracks/haskell/exercises/strain/src/Strain.hs +2 -2
- data/tracks/haskell/exercises/sublist/src/Sublist.hs +1 -1
- data/tracks/haskell/exercises/sum-of-multiples/src/SumOfMultiples.hs +1 -1
- data/tracks/haskell/exercises/triangle/src/Triangle.hs +1 -1
- data/tracks/haskell/exercises/trinary/src/Trinary.hs +2 -2
- data/tracks/haskell/exercises/word-count/src/WordCount.hs +1 -1
- data/tracks/haskell/exercises/wordy/src/WordProblem.hs +1 -1
- data/tracks/haskell/exercises/zebra-puzzle/src/ZebraPuzzle.hs +1 -1
- data/tracks/haskell/exercises/zipper/src/Zipper.hs +9 -9
- data/tracks/java/docs/MAINTAINING.md +48 -0
- data/tracks/java/exercises/queen-attack/src/test/java/QueenAttackCalculatorTest.java +51 -51
- data/tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt +1 -1
- data/tracks/kotlin/exercises/etl/src/test/kotlin/ETLTest.kt +19 -19
- data/tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt +5 -0
- data/tracks/lisp/docs/ABOUT.md +9 -0
- data/tracks/lua/exercises/transpose/example.lua +1 -1
- data/tracks/lua/exercises/transpose/transpose_spec.lua +16 -0
- data/tracks/pascal/config.json +36 -36
- data/tracks/pascal/exercises/bob/uBobTests.pas +0 -1
- data/tracks/pascal/exercises/hamming/uHammingTests.pas +0 -1
- data/tracks/pascal/exercises/leap/uLeapTests.pas +0 -1
- data/tracks/pascal/exercises/saddle-points/uSaddlePointsExample.pas +11 -0
- data/tracks/pascal/exercises/saddle-points/uSaddlePointsTests.pas +9 -1
- data/tracks/perl6/exercises/atbash-cipher/cipher.t +1 -1
- data/tracks/php/config.json +7 -0
- data/tracks/php/exercises/robot-simulator/example.php +148 -0
- data/tracks/php/exercises/robot-simulator/robot-simulator_test.php +168 -0
- data/tracks/pony/config.json +16 -7
- data/tracks/pony/exercises/roman-numerals/example.pony +35 -0
- data/tracks/pony/exercises/roman-numerals/test.pony +45 -0
- data/tracks/python/requirements-travis.txt +1 -1
- data/tracks/ruby/.rubocop.yml +1 -1
- data/tracks/ruby/bin/enable-executable +1 -1
- data/tracks/ruby/bin/executable-tests-check +1 -1
- data/tracks/ruby/exercises/acronym/example.tt +2 -3
- data/tracks/ruby/exercises/all-your-base/example.tt +2 -2
- data/tracks/ruby/exercises/alphametics/example.tt +2 -2
- data/tracks/ruby/exercises/anagram/example.tt +2 -3
- data/tracks/ruby/exercises/binary/example.tt +2 -3
- data/tracks/ruby/exercises/bowling/example.tt +2 -3
- data/tracks/ruby/exercises/bracket-push/example.tt +2 -3
- data/tracks/ruby/exercises/clock/example.tt +2 -3
- data/tracks/ruby/exercises/connect/example.rb +1 -1
- data/tracks/ruby/exercises/connect/example.tt +1 -1
- data/tracks/ruby/exercises/custom-set/example.tt +2 -3
- data/tracks/ruby/exercises/diamond/example.rb +1 -1
- data/tracks/ruby/exercises/difference-of-squares/example.tt +2 -3
- data/tracks/ruby/exercises/dominoes/example.tt +2 -2
- data/tracks/ruby/exercises/gigasecond/example.tt +2 -3
- data/tracks/ruby/exercises/grains/example.tt +2 -2
- data/tracks/ruby/exercises/hamming/example.tt +2 -3
- data/tracks/ruby/exercises/hello-world/example.tt +1 -2
- data/tracks/ruby/exercises/isogram/example.tt +2 -2
- data/tracks/ruby/exercises/largest-series-product/example.tt +2 -4
- data/tracks/ruby/exercises/leap/example.tt +2 -3
- data/tracks/ruby/exercises/nth-prime/example.tt +2 -4
- data/tracks/ruby/exercises/pangram/example.tt +2 -2
- data/tracks/ruby/exercises/queen-attack/example.tt +2 -3
- data/tracks/ruby/exercises/raindrops/example.tt +2 -3
- data/tracks/ruby/exercises/rna-transcription/example.tt +2 -3
- data/tracks/ruby/exercises/roman-numerals/example.tt +2 -3
- data/tracks/ruby/exercises/run-length-encoding/example.tt +2 -3
- data/tracks/ruby/exercises/sieve/example.tt +2 -4
- data/tracks/ruby/exercises/simple-linked-list/simple_linked_list_test.rb +6 -6
- data/tracks/ruby/exercises/tournament/example.tt +2 -3
- data/tracks/ruby/exercises/transpose/example.tt +2 -3
- data/tracks/ruby/exercises/triangle/example.tt +2 -3
- data/tracks/ruby/exercises/two-bucket/example.tt +2 -3
- data/tracks/ruby/exercises/word-count/example.tt +2 -3
- data/tracks/ruby/exercises/wordy/example.tt +2 -2
- data/tracks/ruby/lib/acronym_cases.rb +2 -0
- data/tracks/ruby/lib/all_your_base_cases.rb +3 -1
- data/tracks/ruby/lib/alphametics_cases.rb +6 -4
- data/tracks/ruby/lib/anagram_cases.rb +2 -0
- data/tracks/ruby/lib/binary_cases.rb +2 -0
- data/tracks/ruby/lib/bowling_cases.rb +2 -0
- data/tracks/ruby/lib/bracket_push_cases.rb +2 -0
- data/tracks/ruby/lib/clock_cases.rb +2 -0
- data/tracks/ruby/lib/connect_cases.rb +2 -0
- data/tracks/ruby/lib/custom_set_cases.rb +2 -0
- data/tracks/ruby/lib/difference_of_squares_cases.rb +2 -0
- data/tracks/ruby/lib/dominoes_cases.rb +2 -0
- data/tracks/ruby/lib/exercise_cases.rb +2 -0
- data/tracks/ruby/lib/generator/files/track_files.rb +3 -3
- data/tracks/ruby/lib/generator/files.rb +1 -1
- data/tracks/ruby/lib/generator/template_values.rb +5 -14
- data/tracks/ruby/lib/gigasecond_cases.rb +2 -0
- data/tracks/ruby/lib/grains_cases.rb +3 -1
- data/tracks/ruby/lib/hamming_cases.rb +2 -0
- data/tracks/ruby/lib/hello_world_cases.rb +2 -0
- data/tracks/ruby/lib/isogram_cases.rb +3 -1
- data/tracks/ruby/lib/largest_series_product_cases.rb +2 -0
- data/tracks/ruby/lib/leap_cases.rb +2 -0
- data/tracks/ruby/lib/nth_prime_cases.rb +2 -0
- data/tracks/ruby/lib/pangram_cases.rb +3 -1
- data/tracks/ruby/lib/queen_attack_cases.rb +2 -0
- data/tracks/ruby/lib/raindrops_cases.rb +2 -0
- data/tracks/ruby/lib/rna_transcription_cases.rb +2 -0
- data/tracks/ruby/lib/roman_numerals_cases.rb +2 -0
- data/tracks/ruby/lib/run_length_encoding_cases.rb +2 -0
- data/tracks/ruby/lib/sieve_cases.rb +2 -0
- data/tracks/ruby/lib/tournament_cases.rb +2 -0
- data/tracks/ruby/lib/transpose_cases.rb +2 -0
- data/tracks/ruby/lib/triangle_cases.rb +2 -0
- data/tracks/ruby/lib/two_bucket_cases.rb +2 -0
- data/tracks/ruby/lib/word_count_cases.rb +2 -0
- data/tracks/ruby/lib/wordy_cases.rb +2 -0
- data/tracks/ruby/test/fixtures/xruby/exercises/alpha/example.tt +2 -2
- data/tracks/ruby/test/fixtures/xruby/lib/alpha_cases.rb +1 -1
- data/tracks/ruby/test/generator/command_line_test.rb +1 -1
- data/tracks/ruby/test/generator/template_values_test.rb +7 -7
- data/tracks/rust/.travis.yml +4 -0
- data/tracks/rust/_test/check-exercises.sh +11 -2
- data/tracks/rust/config.json +9 -0
- data/tracks/rust/exercises/luhn/.gitignore +7 -0
- data/tracks/rust/exercises/luhn/Cargo.toml +3 -0
- data/tracks/rust/exercises/luhn/example.rs +13 -0
- data/tracks/rust/exercises/luhn/tests/luhn.rs +38 -0
- data/tracks/rust/exercises/parallel-letter-frequency/HINTS.md +32 -0
- data/tracks/rust/exercises/parallel-letter-frequency/benches/benchmark.rs +99 -0
- data/tracks/scala/config.json +57 -1
- data/tracks/scala/exercises/allergies/build.sbt +2 -2
- data/tracks/scala/exercises/atbash-cipher/build.sbt +2 -2
- data/tracks/scala/exercises/bank-account/build.sbt +3 -2
- data/tracks/scala/exercises/binary-search-tree/build.sbt +2 -2
- data/tracks/scala/exercises/clock/build.sbt +2 -2
- data/tracks/scala/exercises/crypto-square/build.sbt +2 -2
- data/tracks/scala/exercises/custom-set/build.sbt +3 -2
- data/tracks/scala/exercises/food-chain/build.sbt +3 -2
- data/tracks/scala/exercises/house/build.sbt +2 -2
- data/tracks/scala/exercises/kindergarten-garden/build.sbt +3 -2
- data/tracks/scala/exercises/largest-series-product/build.sbt +2 -2
- data/tracks/scala/exercises/linked-list/build.sbt +3 -2
- data/tracks/scala/exercises/matrix/build.sbt +2 -2
- data/tracks/scala/exercises/minesweeper/build.sbt +2 -2
- data/tracks/scala/exercises/nth-prime/build.sbt +2 -2
- data/tracks/scala/exercises/ocr-numbers/build.sbt +2 -2
- data/tracks/scala/exercises/palindrome-products/build.sbt +2 -2
- data/tracks/scala/exercises/prime-factors/build.sbt +3 -2
- data/tracks/scala/exercises/queen-attack/build.sbt +2 -2
- data/tracks/scala/exercises/raindrops/build.sbt +2 -2
- data/tracks/scala/exercises/robot-simulator/build.sbt +2 -2
- data/tracks/scala/exercises/triangle/build.sbt +2 -2
- data/tracks/scala/exercises/trinary/build.sbt +2 -2
- data/tracks/scala/exercises/wordy/build.sbt +3 -3
- metadata +33 -2
@@ -5,7 +5,7 @@ require 'fileutils'
|
|
5
5
|
puts 'Ensuring test files are executable.'
|
6
6
|
|
7
7
|
# Assume that this file lives in #{base}/bin
|
8
|
-
base = File.join(__dir__,'..')
|
8
|
+
base = File.join(__dir__, '..')
|
9
9
|
files = Dir.glob("#{base}/**/*test.rb") + Dir.glob("#{base}/bin/*")
|
10
10
|
|
11
11
|
files.each do |file|
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'acronym'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class AcronymTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.name %><% if test_case.skipped? %>
|
10
9
|
skip<% end %>
|
@@ -14,6 +13,6 @@ class AcronymTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
2
|
require_relative 'all_your_base'
|
3
3
|
|
4
|
-
#
|
4
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
5
5
|
class AllYourBaseTest < Minitest::Test<% test_cases.each do |test_case| %>
|
6
6
|
def <%= test_case.test_name %>
|
7
7
|
<%= test_case.skipped %>
|
@@ -12,6 +12,6 @@ class AllYourBaseTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
12
12
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
13
13
|
def test_bookkeeping
|
14
14
|
skip
|
15
|
-
assert_equal <%= version
|
15
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
16
16
|
end
|
17
17
|
end
|
@@ -3,7 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'alphametics'
|
5
5
|
|
6
|
-
#
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
7
7
|
class AlphameticsTest < Minitest::Test
|
8
8
|
<% test_cases.each do |test_case| %>
|
9
9
|
|
@@ -17,6 +17,6 @@ class AlphameticsTest < Minitest::Test
|
|
17
17
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
18
18
|
def test_bookkeeping
|
19
19
|
skip
|
20
|
-
assert_equal <%= version
|
20
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
21
21
|
end
|
22
22
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'anagram'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class AnagramTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.test_name %>
|
10
9
|
<%= test_case.skipped %>
|
@@ -14,6 +13,6 @@ class AnagramTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|
@@ -4,8 +4,7 @@ gem 'minitest', '>= 5.0.0'
|
|
4
4
|
require 'minitest/autorun'
|
5
5
|
require_relative 'binary'
|
6
6
|
|
7
|
-
#
|
8
|
-
# <%= sha1 %>
|
7
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
9
8
|
class BinaryTest < Minitest::Test<% test_cases.each do |test_case| %>
|
10
9
|
def <%= test_case.name %>
|
11
10
|
<%= test_case.skipped %>
|
@@ -15,6 +14,6 @@ class BinaryTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
15
14
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
16
15
|
def test_bookkeeping
|
17
16
|
skip
|
18
|
-
assert_equal <%= version
|
17
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
19
18
|
end
|
20
19
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'bowling'
|
5
5
|
|
6
|
-
#
|
7
|
-
#
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class BowlingTest < Minitest::Test
|
9
8
|
def setup
|
10
9
|
@game = Game.new
|
@@ -24,6 +23,6 @@ class BowlingTest < Minitest::Test
|
|
24
23
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
25
24
|
def test_bookkeeping
|
26
25
|
skip
|
27
|
-
assert_equal <%= version
|
26
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
28
27
|
end
|
29
28
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'bracket_push'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class BracketsTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.name %>
|
10
9
|
<%= test_case.skipped %>
|
@@ -14,6 +13,6 @@ class BracketsTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'clock'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class ClockTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.name %>
|
10
9
|
<%= test_case.skipped %>
|
@@ -14,6 +13,6 @@ class ClockTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|
@@ -3,7 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'connect'
|
5
5
|
|
6
|
-
#
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
7
7
|
class ConnectTest < Minitest::Test<% test_cases.each do |test_case| %>
|
8
8
|
<%= test_case.ignore_method_length%>def <%= test_case.name %>
|
9
9
|
<%= test_case.skipped %><% test_case.test_body.each do |line| %>
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'custom_set'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class CustomSetTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.name %>
|
10
9
|
<%= test_case.skipped %>
|
@@ -14,6 +13,6 @@ class CustomSetTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|
@@ -10,7 +10,7 @@ class Diamond
|
|
10
10
|
middle = total_lines/2
|
11
11
|
letter_char_code = 65
|
12
12
|
(0..total_lines - 1).each do |i|
|
13
|
-
line = Array.new(total_lines," ") # creates a line in each loop
|
13
|
+
line = Array.new(total_lines, " ") # creates a line in each loop
|
14
14
|
if i == 0 || i == total_lines - 1 # placing the letter A in the beginning and end
|
15
15
|
line[middle] = "A"
|
16
16
|
else
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'difference_of_squares'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class DifferenceOfSquaresTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.test_name %><% if test_case.skipped? %>
|
10
9
|
skip<% end %>
|
@@ -19,6 +18,6 @@ class DifferenceOfSquaresTest < Minitest::Test<% test_cases.each do |test_case|
|
|
19
18
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
20
19
|
def test_bookkeeping
|
21
20
|
skip
|
22
|
-
assert_equal <%= version
|
21
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
23
22
|
end
|
24
23
|
end
|
@@ -3,7 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'dominoes'
|
5
5
|
|
6
|
-
#
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
7
7
|
class DominoesTest < Minitest::Test
|
8
8
|
<% test_cases.each do |test_case| %>
|
9
9
|
def <%= test_case.test_name %>
|
@@ -15,7 +15,7 @@ class DominoesTest < Minitest::Test
|
|
15
15
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
16
16
|
def test_bookkeeping
|
17
17
|
skip
|
18
|
-
assert_equal <%= version
|
18
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
19
19
|
end
|
20
20
|
|
21
21
|
# It's infeasible to use example-based tests for this exercise,
|
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
2
|
require_relative 'gigasecond'
|
3
3
|
|
4
|
-
#
|
5
|
-
|
4
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
6
5
|
class GigasecondTest < Minitest::Test<% test_cases.each do |test_case| %>
|
7
6
|
def <%= test_case.name %><% if test_case.skipped? %>
|
8
7
|
skip<% end %>
|
@@ -17,6 +16,6 @@ class GigasecondTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
17
16
|
|
18
17
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
19
18
|
def test_bookkeeping
|
20
|
-
assert_equal <%= version
|
19
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
21
20
|
end
|
22
21
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
2
|
require_relative 'grains'
|
3
3
|
|
4
|
-
#
|
4
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
5
5
|
class GrainsTest < Minitest::Test<% test_cases.each do |test_case| %>
|
6
6
|
def <%= test_case.test_name %>
|
7
7
|
<%= test_case.skipped %>
|
@@ -12,6 +12,6 @@ class GrainsTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
12
12
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
13
13
|
def test_bookkeeping
|
14
14
|
skip
|
15
|
-
assert_equal <%= version
|
15
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
16
16
|
end
|
17
17
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'hamming'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class HammingTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.name %>
|
10
9
|
<%= test_case.skipped %><% if test_case.raises_error? %>
|
@@ -15,6 +14,6 @@ class HammingTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
15
14
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
16
15
|
def test_bookkeeping
|
17
16
|
skip
|
18
|
-
assert_equal <%= version
|
17
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
19
18
|
end
|
20
19
|
end
|
@@ -12,8 +12,7 @@ rescue LoadError => e
|
|
12
12
|
exit 1
|
13
13
|
end
|
14
14
|
|
15
|
-
#
|
16
|
-
# <%= sha1 %>
|
15
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
17
16
|
class HelloWorldTest < Minitest::Test<% test_cases.each do |test_case| %>
|
18
17
|
def <%= test_case.test_name %><% if test_case.skipped? %>
|
19
18
|
skip<% end %>
|
@@ -4,7 +4,7 @@ gem 'minitest', '>= 5.0.0'
|
|
4
4
|
require 'minitest/autorun'
|
5
5
|
require_relative 'isogram'
|
6
6
|
|
7
|
-
# Common test data version: <%=
|
7
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
8
|
class IsogramTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
9
|
def <%= test_case.name %>
|
10
10
|
<%= test_case.skip %>
|
@@ -15,6 +15,6 @@ class IsogramTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
15
15
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
16
16
|
def test_bookkeeping
|
17
17
|
skip
|
18
|
-
assert_equal <%= version
|
18
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
19
19
|
end
|
20
20
|
end
|
@@ -3,9 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'largest_series_product'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
8
|
-
#
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
9
7
|
class Seriestest < Minitest::Test<% test_cases.each do |test_case| %>
|
10
8
|
def <%= test_case.name %><% if test_case.skipped? %>
|
11
9
|
skip<% end %><% if test_case.raises_error? %>
|
@@ -15,6 +13,6 @@ class Seriestest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
15
13
|
<% end %>
|
16
14
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
17
15
|
def test_bookkeeping
|
18
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
19
17
|
end
|
20
18
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'leap'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class Date
|
9
8
|
def leap?
|
10
9
|
raise RuntimeError, "Implement this yourself instead of using Ruby's implementation."
|
@@ -24,6 +23,6 @@ class YearTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
24
23
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
25
24
|
def test_bookkeeping
|
26
25
|
skip
|
27
|
-
assert_equal <%= version
|
26
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
28
27
|
end
|
29
28
|
end
|
@@ -3,9 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'nth_prime'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
8
|
-
#
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
9
7
|
class NthPrimeTest < Minitest::Test<% test_cases.each do |test_case| %>
|
10
8
|
def <%= test_case.name %><% if test_case.skipped? %>
|
11
9
|
skip<% end %><% if test_case.raises_error? %>
|
@@ -16,6 +14,6 @@ class NthPrimeTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
16
14
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
17
15
|
def test_bookkeeping
|
18
16
|
skip
|
19
|
-
assert_equal <%= version
|
17
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
20
18
|
end
|
21
19
|
end
|
@@ -4,7 +4,7 @@ gem 'minitest', '>= 5.0.0'
|
|
4
4
|
require 'minitest/autorun'
|
5
5
|
require_relative 'pangram'
|
6
6
|
|
7
|
-
#
|
7
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
8
|
class PangramTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
9
|
def <%= test_case.name %>
|
10
10
|
<%= test_case.skipped? %>
|
@@ -15,6 +15,6 @@ class PangramTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
15
15
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
16
16
|
def test_bookkeeping
|
17
17
|
skip
|
18
|
-
assert_equal <%= version
|
18
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
19
19
|
end
|
20
20
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'queen_attack'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class QueenTest < Minitest::Test
|
9
8
|
|
10
9
|
<% test_cases.each do |test_case| %>
|
@@ -17,6 +16,6 @@ class QueenTest < Minitest::Test
|
|
17
16
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
18
17
|
def test_bookkeeping
|
19
18
|
skip
|
20
|
-
assert_equal <%= version
|
19
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
21
20
|
end
|
22
21
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'raindrops'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class RaindropsTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.name %><% if test_case.skipped? %>
|
10
9
|
skip<% end %>
|
@@ -14,6 +13,6 @@ class RaindropsTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'rna_transcription'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class ComplementTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.test_name %>
|
10
9
|
<%= test_case.skipped %>
|
@@ -14,6 +13,6 @@ class ComplementTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'roman_numerals'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class RomanNumeralsTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.name %><% if test_case.skipped? %>
|
10
9
|
skip<% end %>
|
@@ -14,6 +13,6 @@ class RomanNumeralsTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|
@@ -4,8 +4,7 @@ gem 'minitest', '>= 5.0.0'
|
|
4
4
|
require 'minitest/autorun'
|
5
5
|
require_relative 'run_length_encoding'
|
6
6
|
|
7
|
-
#
|
8
|
-
# <%= sha1 %>
|
7
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
9
8
|
class RunLengthEncodingTest < Minitest::Test<% test_cases.each do |test_case| %>
|
10
9
|
def <%= test_case.name %><% if test_case.skipped? %>
|
11
10
|
skip<% end %>
|
@@ -17,6 +16,6 @@ class RunLengthEncodingTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
17
16
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
18
17
|
def test_bookkeeping
|
19
18
|
skip
|
20
|
-
assert_equal <%= version
|
19
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
21
20
|
end
|
22
21
|
end
|
@@ -3,9 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'sieve'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
8
|
-
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
9
7
|
class SieveTest < Minitest::Test<% test_cases.each do |test_case| %>
|
10
8
|
def <%= test_case.name %>
|
11
9
|
<%= test_case.skipped %>
|
@@ -16,6 +14,6 @@ class SieveTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
16
14
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
17
15
|
def test_bookkeeping
|
18
16
|
skip
|
19
|
-
assert_equal <%= version
|
17
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
20
18
|
end
|
21
19
|
end
|
@@ -78,26 +78,26 @@ class LinkedListTest < Minitest::Test
|
|
78
78
|
second = Element.new(2)
|
79
79
|
third = Element.new(3)
|
80
80
|
list.push(first).push(second).push(third)
|
81
|
-
assert_equal [3,2,1], list.to_a
|
81
|
+
assert_equal [3, 2, 1], list.to_a
|
82
82
|
end
|
83
83
|
|
84
84
|
def test_list_create_from_array
|
85
85
|
skip
|
86
|
-
array = [1,2,3]
|
86
|
+
array = [1, 2, 3]
|
87
87
|
list = SimpleLinkedList.new(array)
|
88
|
-
assert_equal [3,2,1], list.to_a
|
88
|
+
assert_equal [3, 2, 1], list.to_a
|
89
89
|
end
|
90
90
|
|
91
91
|
def test_list_created_from_array_still_made_up_of_elements
|
92
92
|
skip
|
93
|
-
array = [1,2,3]
|
93
|
+
array = [1, 2, 3]
|
94
94
|
list = SimpleLinkedList.new(array)
|
95
95
|
assert_equal Element, list.pop.class
|
96
96
|
end
|
97
97
|
|
98
98
|
def test_list_from_array_still_acts_as_lifo
|
99
99
|
skip
|
100
|
-
array = [1,2,3]
|
100
|
+
array = [1, 2, 3]
|
101
101
|
list = SimpleLinkedList.new(array)
|
102
102
|
element = list.pop
|
103
103
|
assert_equal 3, element.datum
|
@@ -111,7 +111,7 @@ class LinkedListTest < Minitest::Test
|
|
111
111
|
list = SimpleLinkedList.new
|
112
112
|
list.push(first).push(second).push(third)
|
113
113
|
|
114
|
-
assert_equal [1,2,3], list.reverse!.to_a
|
114
|
+
assert_equal [1, 2, 3], list.reverse!.to_a
|
115
115
|
end
|
116
116
|
|
117
117
|
def test_list_in_place_reverse_are_the_same_elements
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'tournament'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class TournamentTest < Minitest::Test
|
9
8
|
<% test_cases.each do |test_case| %>
|
10
9
|
def <%= test_case.test_name %>
|
@@ -18,6 +17,6 @@ class TournamentTest < Minitest::Test
|
|
18
17
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
19
18
|
def test_bookkeeping
|
20
19
|
skip
|
21
|
-
assert_equal <%= version
|
20
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
22
21
|
end
|
23
22
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'transpose'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class TransposeTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.test_name %>
|
10
9
|
<%= test_case.skipped %>
|
@@ -17,6 +16,6 @@ class TransposeTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
17
16
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
18
17
|
def test_bookkeeping
|
19
18
|
skip
|
20
|
-
assert_equal <%= version
|
19
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
21
20
|
end
|
22
21
|
end
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'triangle'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class TriangleTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.test_name %>
|
10
9
|
<%= test_case.skipped %>
|
@@ -14,7 +13,7 @@ class TriangleTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|
20
19
|
|
@@ -3,8 +3,7 @@ gem 'minitest', '>= 5.0.0'
|
|
3
3
|
require 'minitest/autorun'
|
4
4
|
require_relative 'two_bucket'
|
5
5
|
|
6
|
-
#
|
7
|
-
# <%= sha1 %>
|
6
|
+
# Common test data version: <%= abbreviated_commit_hash %>
|
8
7
|
class TwoBucketTest < Minitest::Test<% test_cases.each do |test_case| %>
|
9
8
|
def <%= test_case.test_name %><% if test_case.skipped? %>
|
10
9
|
skip<% end %>
|
@@ -14,6 +13,6 @@ class TwoBucketTest < Minitest::Test<% test_cases.each do |test_case| %>
|
|
14
13
|
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
|
15
14
|
def test_bookkeeping
|
16
15
|
skip
|
17
|
-
assert_equal <%= version
|
16
|
+
assert_equal <%= version %>, BookKeeping::VERSION
|
18
17
|
end
|
19
18
|
end
|