Commit Graph

24 Commits

Author SHA1 Message Date
John Bampton 4fa3359d44 refactor: remove trailing whitespace from C, Header, Ruby and YAML files
Lint
2020-12-15 19:44:02 +10:00
Yukihiro "Matz" Matsumoto 32ffd81011 Add beginless/endless ranges tests. 2020-10-29 10:43:09 +09:00
taiyoslime bec4d05340 Introduce endless range (a part of #5085)
Co-Authored-By: n4o847 <22975590+n4o847@users.noreply.github.com>
Co-Authored-By: smallkirby <ssmallkirby@gmail.com>
2020-10-13 14:09:36 +09:00
KOBAYASHI Shuji c8a7d0ab95 Fix the order of "expected" and "actual" in test/t/range.rb 2019-07-09 13:13:13 +09:00
Yukihiro "Matz" Matsumoto cca19532c5 Remove Kernel#class_defined? which is not available in CRuby; #3829 2019-01-03 11:34:35 +09:00
KOBAYASHI Shuji 648b57620a range: Embed edges in RRange on boxing environment.
[Breaking changes]

Developers must use following APIs for accessing attributes of RRange
because RRange structure depends on boxing setting.

- mrb_range_beg
- mrb_range_end
- mrb_range_excl_p
2019-01-01 15:35:56 +09:00
KOBAYASHI Shuji 4da687a6c3 Use __send__ instead of send in a Range test.
This assertion is accidentaly passed because `send` was removed from mruby
core so `NoMethodError` is raised and `NoMethodError` is subclass of
`NameError`.
2019-01-01 09:38:58 +09:00
YAMAMOTO Masaya dcd5d0ffec Test for MRB_WITHOUT_FLOAT 2017-10-11 17:58:11 +09:00
Yukihiro "Matz" Matsumoto b03b1e37d9 Merge pull request #3255 from ksss/range-include
Fix condition of Range#include?
2016-11-18 11:48:49 +09:00
ksss 4ef591c897 Fix condition of Range#include? 2016-11-18 10:01:03 +09:00
ksss 176d93d72a Ranges should not rewrite 2016-11-17 14:57:30 +09:00
take_cheeze ec5b055694 Move direct superclass checking to test/t/superclass.rb. 2014-06-15 15:02:21 +09:00
yui-knk 60d2b51cc0 Add tests for Range#to_s Range#inspect. 2014-05-08 23:50:11 +09:00
yui-knk aac3992195 fix typo 2014-05-08 13:55:30 +09:00
Jun Hiroe f467ea1ab4 I fix order of actual and expect test value in range.rb. 2013-08-02 22:40:12 +09:00
Jun Hiroe 2e9b2ccf84 Add Range#eql? test case. 2013-07-01 22:20:32 +09:00
Yukihiro "Matz" Matsumoto 068087439e Merge pull request #1324 from h2so5/fix-range-equal
Fix Range#==
2013-06-30 14:23:57 -07:00
h2so5 db0eaa6352 Fix Range#== 2013-06-30 23:40:53 +09:00
Jun Hiroe 57b629a988 Add Range#eql? method test. 2013-06-30 22:53:41 +09:00
Daniel Bovensiepen 71e1257417 Improve Range Tests 2013-06-15 00:01:08 +08:00
Masamitsu MURASE 7941dfb44a Enable test for Range#initialize. 2013-01-28 16:08:11 +09:00
Daniel Bovensiepen 0c2d74020a Add more superclass tests 2012-06-03 23:31:53 +08:00
Daniel Bovensiepen 31e9705022 Add Test cases for Literals, Enumeration, Exceptions and clean line endings 2012-05-29 01:20:46 +08:00
Daniel Bovensiepen d45ecc3270 Complete ISO test cases for Hash, Range, String and Symbol 2012-05-19 23:18:42 +08:00