1
0
Fork 0
mirror of https://github.com/TheAlgorithms/Ruby synced 2025-02-17 21:33:22 +01:00
TheAlgorithms-Ruby/maths/ceil_test.rb

19 lines
324 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'minitest/autorun'
require_relative './ceil'
class CeilTest < Minitest::Test
def test_integer
assert_equal Ceil.call(4), 4
end
def test_float_at_integer
assert_equal Ceil.call(4.0), 4
end
def test_float_not_at_integer
assert_equal Ceil.call(4.01), 5
end
end