Project

General

Profile

Actions

Bug #974

closed

Range#max で終了しないことがある

Added by tadf (tadayoshi funaba) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-dev:37688]

Description

=begin
以下のようにすると終了しないようです。

$ ./ruby -e 'inf=1.0/0; (0...inf).max'
=end


Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #4591: (1.5...2).max #=> 1 (Range#max)Closedtarui (Masaya Tarui)04/21/2011Actions
Related to Ruby master - Bug #4577: (int...float).max should not raise an errorRejectedmatz (Yukihiro Matsumoto)04/14/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0