summaryrefslogtreecommitdiffhomepage
path: root/test/t/numeric.rb
AgeCommit message (Collapse)Author
2019-10-25Squeeze redundant spaces in `test/t/numeric.rb` [ci skip]KOBAYASHI Shuji
2019-07-30Refine message to `skip` in nested `assert`KOBAYASHI Shuji
- I think "Info" is used only to `skip`, so change to "Skip". - Changed the default value of `assert` and specify the argument explicitly at the caller of `assert` because it is unnatural "Assertion failed" is output even though the assertion doesn't fail. == Example: def assert_foo(exp, act) assert do assert_equal exp[0], act[0] assert_equal exp[1], act[1] end end def assert_bar(exp, act) assert do skip end end def assert_baz(exp, act) assert do assert_equal exp, act assert_bar exp, act end end assert 'test#skip_in_nested_assert' do assert_baz 1, 1 end === Before this patch: ?.. Info: test#skip_in_nested_assert (core) - Assertion[1] Info: Assertion failed (core) - Assertion[1-2] Skip: Assertion failed (core) Total: 3 OK: 2 KO: 0 Crash: 0 Warning: 0 Skip: 1 === After this patch: ??? Skip: test#skip_in_nested_assert (core) - Assertion[1] Skip: assert (core) - Assertion[1-2] Skip: assert (core) Total: 3 OK: 0 KO: 0 Crash: 0 Warning: 0 Skip: 3
2019-07-07Fix `Numeric#step` to infinity; ref. #4555KOBAYASHI Shuji
2019-03-22Simplify `assert_step` in `test/t/numeric.rb`KOBAYASHI Shuji
2019-01-17Fix assertion name for `Numeric#**` testKOBAYASHI Shuji
2019-01-15Fix coercing for first step counter in `Numeric#step`KOBAYASHI Shuji
Before: a=[]; 7.step(4, -3.0) { |c| a << c }; p a #=> [7, 4.0] After / Ruby: a=[]; 7.step(4, -3.0) { |c| a << c }; p a #=> [7.0, 4.0]
2019-01-03Remove `Kernel#class_defined?` which is not available in CRuby; #3829Yukihiro "Matz" Matsumoto
2017-10-11Test for MRB_WITHOUT_FLOATYAMAMOTO Masaya
2014-08-25Add test for Numeric#pow.Tatsuhiko Kubo
2014-06-15Move direct superclass checking to `test/t/superclass.rb`.take_cheeze
2014-03-28add Numeric#/ tests; ref #1965Yukihiro "Matz" Matsumoto
2013-08-02I fix order of actual and expect test value in numeric.rb.Jun Hiroe
2013-06-14Improve Numeric TestsDaniel Bovensiepen
2012-06-03Add more superclass testsDaniel Bovensiepen
2012-05-29Add Test cases for Literals, Enumeration, Exceptions and clean line endingsDaniel Bovensiepen
2012-05-16Add Tests for NumericDaniel Bovensiepen