10 lines
320 B
Ruby
10 lines
320 B
Ruby
require 'minitest/autorun'
|
|
require_relative 'main'
|
|
|
|
class ConvertLengthTest < Minitest::Test
|
|
def test_convert_length
|
|
assert_equal 39.37, convert_length(1, from: :m, to: :in)
|
|
assert_equal 0.38, convert_length(15, from: :in, to: :m)
|
|
assert_equal 10670.73, convert_length(35_000, from: :ft, to: :m)
|
|
end
|
|
end
|