Project

General

Profile

Actions

Bug #19418

closed

Checking if a date in an open date range times out when the range starts after the test date

Added by wilhelmsen (Hallgeir Wilhelmsen) about 2 years ago. Updated about 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:112232]

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

Also available in: Atom PDF

Like0
Like0Like0