Actions
Bug #19418
closedChecking if a date in an open date range times out when the range starts after the test date
Description
require 'date' ((Date.today + 1)..).include?(Date.today)
is expected to return false
. It never return a value, as like it is in a never ending loop.
((Date.today)..).include?(Date.today)
however, returns true
right away.
(2..).include?(1)
also returns false, as expected.
I.e. this seems to be a date issue and not a range issue, and it seem to happen when the start date comes after the date to check for.
Actions
Like0
Like0Like0