Skip to content

Commit 3fd2c27

Browse files
committed
Ensuring all templates call test_name, fixes
1 parent 745ffcf commit 3fd2c27

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+141
-101
lines changed

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

exercises/acronym/example.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ require_relative 'acronym'
66
# Test data version:
77
# <%= sha1 %>
88
class AcronymTest < Minitest::Test<% test_cases.each do |test_case| %>
9-
def <%= test_case.name %>
9+
def <%= test_case.test_name %>
1010
<%= test_case.skipped %>
11-
<%= test_case.work_load %>
11+
<%= test_case.workload %>
1212
end
1313
<% end %>
1414
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>

exercises/alphametics/example.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require_relative 'alphametics'
88
class AlphameticsTest < Minitest::Test<% test_cases.each do |test_case| %>
99
def <%= test_case.test_name %>
1010
<%= test_case.skipped %>
11-
<%= test_case.work_load %>
11+
<%= test_case.workload %>
1212
end
1313
<% end %>
1414
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>

exercises/anagram/example.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require_relative 'anagram'
88
class AnagramTest < Minitest::Test<% test_cases.each do |test_case| %>
99
def <%= test_case.test_name %>
1010
<%= test_case.skipped %>
11-
<%= test_case.work_load %>
11+
<%= test_case.workload %>
1212
end
1313
<% end %>
1414
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>

exercises/binary/example.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ require_relative 'binary'
77
# Test data version:
88
# <%= sha1 %>
99
class BinaryTest < Minitest::Test<% test_cases.each do |test_case| %>
10-
def <%= test_case.name %>
10+
def <%= test_case.test_name %>
1111
<%= test_case.skipped %>
12-
<%= test_case.work_load %>
12+
<%= test_case.workload %>
1313
end
1414
<% end %>
1515
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>

exercises/bracket-push/example.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ require_relative 'bracket_push'
66
# Test data version:
77
# <%= sha1 %>
88
class BracketsTest < Minitest::Test<% test_cases.each do |test_case| %>
9-
def <%= test_case.name %>
9+
def <%= test_case.test_name %>
1010
<%= test_case.skipped %>
11-
<%= test_case.work_load %>
11+
<%= test_case.workload %>
1212
end
1313
<% end %>
1414
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>

exercises/clock/example.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ require_relative 'clock'
66
# Test data version:
77
# <%= sha1 %>
88
class ClockTest < Minitest::Test<% test_cases.each do |test_case| %>
9-
def <%= test_case.name %>
9+
def <%= test_case.test_name %>
1010
<%= test_case.skipped %>
11-
<%= test_case.work_load %>
11+
<%= test_case.workload %>
1212
end
1313
<% end %>
1414
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>

exercises/connect/example.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ require_relative 'connect'
66
# Test data version commit id: <%= sha1 %>
77
class ConnectTest < Minitest::Test
88
<% test_cases.each do |test_case| %>
9-
<%= test_case.ignore_method_length%>def <%= test_case.name %>
9+
<%= test_case.ignore_method_length%>def <%= test_case.test_name %>
1010
<%= test_case.skipped %>
11-
<%= test_case.work_load.strip %>
11+
<%= test_case.workload %>
1212
end
1313
<% end %>
1414
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
1515
def test_bookkeeping
1616
skip
17-
assert_equal <%= version %>, BookKeeping::VERSION
17+
assert_equal <%= version.next %>, BookKeeping::VERSION
1818
end
1919
end

exercises/custom-set/example.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require_relative 'custom_set'
88
class CustomSetTest < Minitest::Test<% test_cases.each do |test_case| %>
99
def <%= test_case.test_name %>
1010
<%= test_case.skipped %>
11-
<%= test_case.work_load %>
11+
<%= test_case.workload %>
1212
end
1313
<% end %>
1414
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>

exercises/difference-of-squares/example.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ require_relative 'difference_of_squares'
66
# Test data version:
77
# <%= sha1 %>
88
class DifferenceOfSquaresTest < Minitest::Test<% test_cases.each do |test_case| %>
9-
def <%= test_case.test_name %><% if test_case.skipped? %>
10-
skip<% end %>
11-
assert_equal <%= test_case.expected_formatted %>, <%= test_case.do %>
9+
def <%= test_case.test_name %>
10+
<%= test_case.skipped %>
11+
<%= test_case.workload %>
1212
end
1313
<% end %>
1414
def test_consistent_difference

0 commit comments

Comments
 (0)