diff --git a/exercises/anagram/example.tt b/exercises/anagram/example.tt index 54dec42a7b..85f1e70d66 100644 --- a/exercises/anagram/example.tt +++ b/exercises/anagram/example.tt @@ -7,7 +7,7 @@ require_relative 'anagram' class AnagramTest < Minitest::Test<% test_cases.each do |test_case| %> def <%= test_case.test_name %> <%= test_case.skipped %> - <%= test_case.work_load %> + <%= test_case.workload %> end <% end %> <%= IO.read(XRUBY_LIB + '/bookkeeping.md') %> diff --git a/exercises/bowling/example.tt b/exercises/bowling/example.tt index 2cd1fc2b82..ff04d7e256 100644 --- a/exercises/bowling/example.tt +++ b/exercises/bowling/example.tt @@ -16,7 +16,7 @@ class BowlingTest < Minitest::Test <% test_cases.each do |test_case| %> def <%= test_case.test_name %> <%= test_case.skipped %> - <%= test_case.work_load %> + <%= test_case.workload %> end <% end %> diff --git a/exercises/hamming/example.tt b/exercises/hamming/example.tt index abd4241584..eae5e6209a 100644 --- a/exercises/hamming/example.tt +++ b/exercises/hamming/example.tt @@ -7,8 +7,8 @@ require_relative 'hamming' class HammingTest < Minitest::Test<% test_cases.each do |test_case| %> def <%= test_case.name %> <%= test_case.skipped %><% if test_case.raises_error? %> - assert_raises(ArgumentError) { <%= test_case.work_load %> }<% else %> - assert_equal <%= test_case.expected %>, <%= test_case.work_load %><% end %> + assert_raises(ArgumentError) { <%= test_case.workload %> }<% else %> + assert_equal <%= test_case.expected %>, <%= test_case.workload %><% end %> end <% end %> <%= IO.read(XRUBY_LIB + '/bookkeeping.md') %> diff --git a/exercises/rna-transcription/example.tt b/exercises/rna-transcription/example.tt index e4c379a04b..b748fec11d 100644 --- a/exercises/rna-transcription/example.tt +++ b/exercises/rna-transcription/example.tt @@ -7,7 +7,7 @@ require_relative 'rna_transcription' class ComplementTest < Minitest::Test<% test_cases.each do |test_case| %> def <%= test_case.test_name %> <%= test_case.skipped %> - assert_equal '<%= test_case.expected %>', <%= test_case.work_load %> + assert_equal '<%= test_case.expected %>', <%= test_case.workload %> end <% end %> <%= IO.read(XRUBY_LIB + '/bookkeeping.md') %> diff --git a/lib/anagram_cases.rb b/lib/anagram_cases.rb index e91baece95..79e970f1f6 100644 --- a/lib/anagram_cases.rb +++ b/lib/anagram_cases.rb @@ -5,7 +5,7 @@ def test_name 'test_%s' % description.gsub(/[ -]/, '_') end - def work_load + def workload indent_lines([show_comment, detector, anagram, assert].compact) end diff --git a/lib/binary_cases.rb b/lib/binary_cases.rb index 3c3dc41962..c281e7851f 100644 --- a/lib/binary_cases.rb +++ b/lib/binary_cases.rb @@ -16,14 +16,14 @@ def skipped private def error_assertion - "assert_raises(ArgumentError) { #{work_load} }" + "assert_raises(ArgumentError) { #{workload} }" end def equality_assertion - "assert_equal #{expected}, #{work_load}" + "assert_equal #{expected}, #{workload}" end - def work_load + def workload "Binary.to_decimal('#{binary}')" end diff --git a/lib/bowling_cases.rb b/lib/bowling_cases.rb index b69503a556..8a6a732f02 100644 --- a/lib/bowling_cases.rb +++ b/lib/bowling_cases.rb @@ -9,7 +9,7 @@ def skipped index.zero? ? '# skip' : 'skip' end - def work_load + def workload indent_lines(assert) end diff --git a/lib/hamming_cases.rb b/lib/hamming_cases.rb index b3b7289e4e..1ad4f69cca 100644 --- a/lib/hamming_cases.rb +++ b/lib/hamming_cases.rb @@ -5,7 +5,7 @@ def name 'test_%s' % description.gsub(/[ -]/, '_') end - def work_load + def workload "Hamming.compute('#{strand1}', '#{strand2}')" end diff --git a/lib/rna_transcription_cases.rb b/lib/rna_transcription_cases.rb index 98173a6c4b..3632d94a52 100644 --- a/lib/rna_transcription_cases.rb +++ b/lib/rna_transcription_cases.rb @@ -5,7 +5,7 @@ def test_name 'test_%s' % description.gsub(/[ -]/, '_') end - def work_load + def workload "Complement.of_dna('#{dna}')" end