Commit Graph

9 Commits

Author SHA1 Message Date
akr 4261abb230 * range.c: represent initialized state using EXCL instead of FL_USER3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-10 06:25:40 +00:00
nobu 113a709cce * range.c (range_max, range_min): return nil for empty set as well as
1.8 and Enumerable.  [ruby-dev:31198]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 02:33:11 +00:00
akr 8f79c623f3 add tests for [ruby-dev:31189] and [ruby-dev:31190].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 13:23:29 +00:00
matz 9c5a4caf72 * range.c (range_max): treat end exclusion without iteration if
the end value is an integer.  [ruby-talk:167433]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-25 05:42:28 +00:00
akr 16457d4b96 add exclude_end? method to DuckRange.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-05 23:56:02 +00:00
akr b08e8d937f add a test for duck-type range.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-04 05:19:44 +00:00
akr 5f97451ef9 add a test for [ruby-dev:26383].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 06:27:05 +00:00
nahi 994dfc0ae6 * test/*: should not depend on $KCODE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 13:08:08 +00:00
usa c7d278adb9 * test/ruby/test_range.rb: added.
* MANIFEST: add test/ruby/test_range.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17 02:18:01 +00:00