Skip to content

Commit

Permalink
chore(templates): Fix default tests naming
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Dec 23, 2024
1 parent 3b805ca commit bd761fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions templates/day_test.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ module AdventOfCode
# Do nothing
end

def test_answer_test_set
def test_part1_answer_test_set
input_file = "#{File.dirname(__FILE__)}/test_data.txt"
puzzle = AdventOfCode::Puzzles<%= year %>::Day<%= day %>::Part1.new(file: input_file)

assert_equal 0, puzzle.answer
end

def test_answer_real_set
def test_part1_answer_real_set
puzzle = AdventOfCode::Puzzles<%= year %>::Day<%= day %>::Part1.new

assert_equal 0, puzzle.answer
Expand All @@ -43,14 +43,14 @@ module AdventOfCode
# Do nothing
end

def test_answer_test_set
def test_part2_answer_test_set
input_file = "#{File.dirname(__FILE__)}/test_data.txt"
puzzle = AdventOfCode::Puzzles<%= year %>::Day<%= day %>::Part2.new(file: input_file)

assert_equal 0, puzzle.answer
end

def test_answer_real_set
def test_part2_answer_real_set
puzzle = AdventOfCode::Puzzles<%= year %>::Day<%= day %>::Part2.new

assert_equal 0, puzzle.answer
Expand Down
8 changes: 4 additions & 4 deletions templates/day_test.rbs.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module AdventOfCode
module Puzzles<%= year %>
module Day<%= day %>
class Part1Test < MiniTest::Test
def test_answer_real_set: -> untyped
def test_answer_test_set: -> untyped
def test_part1_answer_real_set: -> untyped
def test_part1_answer_test_set: -> untyped
end

class Part2Test < MiniTest::Test
def test_answer_real_set: -> untyped
def test_answer_test_set: -> untyped
def test_part2_answer_real_set: -> untyped
def test_part2_answer_test_set: -> untyped
end
end
end
Expand Down

0 comments on commit bd761fc

Please sign in to comment.