fjord/main_test.rb

11 lines
252 B
Ruby
Raw Normal View History

2024-03-17 23:28:50 +09:00
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