my-solutions/leetcode/0223-rectangle-area/test.rb

10 lines
244 B
Ruby
Raw Normal View History

2022-12-02 23:28:36 +05:00
require_relative 'main'
require 'test/unit'
class TestRectangleArea < Test::Unit::TestCase
def test_simple
assert_equal(45, compute_area(-3, 0, 3, 4, 0, -1, 9, 2))
assert_equal(16, compute_area(-2, -2, 2, 2, -2, -2, 2, 2))
end
end