akr
3330ec6cff
add tests for [ruby-dev:34557] and [ruby-dev:34558].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-02 07:52:01 +00:00
matz
bdc00ba604
* bignum.c (rb_cmpint): moved from compar.c, to check bignum
...
zero.
* range.c (range_step): add step for each iteration if begin and
end are numeric. [ruby-core:15990]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-06 17:11:50 +00:00
mame
3c5d20272f
* test/ruby/test_range.rb: add tests to achieve over 90% test coverage
...
of range.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-29 16:26:07 +00:00
akr
068d11ef96
* range.c (range_dumper): make uninitialized range dumpable.
...
(range_loader): make uninitialized range loadable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-10 06:50:22 +00:00
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