my-solutions/advent-of-code/2024/day_06/test.rb

14 lines
338 B
Ruby

require "test/unit"
require_relative "lib"
class TestLib < Test::Unit::TestCase
def test_example_1
matrix = File.readlines("test.txt", chomp: true)
assert_equal(41, walk(matrix))
end
def test_example_2
matrix = File.readlines("test.txt", chomp: true)
assert_equal(6, count_possible_obstructions(matrix))
end
end