assert() do
# returns the maximum value in the range when called with no arguments
assert_equal , (..).max
assert_equal , (...).max
# returns nil when the endpoint is less than the start point
assert_equal nil, (..).max
end
assert() do
# returns nil when the endpoint is less than the start point
assert_equal nil, ((..).max { x <=> y })
end
assert() do
# returns the minimum value in the range when called with no arguments
assert_equal , (..).min
# returns nil when the start point is greater than the endpoint
assert_equal nil, (..).min
end
assert() do
# returns nil when the start point is greater than the endpoint
assert_equal nil, ((..).min { x <=> y })
end