10 lines
252 B
Ruby
10 lines
252 B
Ruby
require 'minitest/autorun'
|
|
require_relative 'main'
|
|
|
|
class RdbTest < Minitest::Test
|
|
def test_to_hex
|
|
assert_equal '#000000', to_hex(0, 0, 0)
|
|
assert_equal '#ffffff', to_hex(255, 255, 255)
|
|
assert_equal '#043c78', to_hex(4, 60, 120)
|
|
end
|
|
end
|