ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: glass.saga@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:82501] [Ruby trunk Bug#13652][Rejected] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String
Date: Tue, 29 Aug 2017 08:14:35 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-66310.20170829081433.191a9e6ac84e2ad8@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-13652.20170613025943@ruby-lang.org

Issue #13652 has been updated by Glass_saga (Masaki Matsushita).

Status changed from Open to Rejected

It can't be reproduced.

```
% ruby -v -r "date" -e "p DateTime.parse == 'No End Date'"
ruby 2.5.0dev (2017-08-29 trunk 59656) [x86_64-darwin15]
false
```

----------------------------------------
Bug #13652: Ruby 2.3.4 does not catch Argument error when comparing DateTime with String
https://bugs.ruby-lang.org/issues/13652#change-66310

* Author: derekzwy (Wenyuan Zhang)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.3.4
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Ruby 2.3.4 does not catch Argument error when comparing DateTime with String, while Ruby 2.1.5 catches it and return false.

---Files--------------------------------
ruby 2.3.4.png (168 KB)
ruby 2.1.5.png (133 KB)


-- 
https://bugs.ruby-lang.org/

      parent reply	other threads:[~2017-08-29  8:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-13652.20170613025943@ruby-lang.org>
2017-06-13  2:59 ` [ruby-core:81657] [Ruby trunk Bug#13652] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String 584797182
2017-06-13  6:54 ` [ruby-core:81659] " hanmac
2017-08-29  8:14 ` glass.saga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-66310.20170829081433.191a9e6ac84e2ad8@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).