a start of an attempt to try out Ruby

This commit is contained in:
Wouter Groeneveld 2023-12-10 11:17:36 +01:00
parent 6dab4bf9eb
commit af19561c7f
2 changed files with 23 additions and 0 deletions

10
2023/09/impl.rb Normal file
View File

@ -0,0 +1,10 @@
class Impl
def solve(input)
toOASISSequence = ->(line) {
}
input.split("\n").map &toOASISSequence
end
end

13
2023/09/impl_test.rb Normal file
View File

@ -0,0 +1,13 @@
require "minitest/autorun"
require "./impl.rb"
class TestImpl < MiniTest::Test
def setup
@impl = Impl.new
end
def test_oasis_of_a_single_line
assert_equal 28, @impl.solve("1 3 6 10 15 21")
end
end