a start of an attempt to try out Ruby
This commit is contained in:
parent
6dab4bf9eb
commit
af19561c7f
|
@ -0,0 +1,10 @@
|
|||
|
||||
class Impl
|
||||
def solve(input)
|
||||
toOASISSequence = ->(line) {
|
||||
|
||||
}
|
||||
|
||||
input.split("\n").map &toOASISSequence
|
||||
end
|
||||
end
|
|
@ -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
|
Loading…
Reference in New Issue