| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-03-26 | Fix dealing with infinity and NaN in `test/assert.rb:assert_float` | KOBAYASHI Shuji | |
| `assert_float` is always passed when expected value and/or actual value are infinity or NaN. This behavior seems unintentional. Before this patch: assert_float(Float::INFINITY, 1.0) #=> pass assert_float(-Float::INFINITY, 1) #=> pass assert_float(1, 1/0) #=> pass assert_float(1, -1/0) #=> pass assert_float(1.0, Float::NAN) #=> pass assert_float(Float::NAN, 1) #=> pass After this patch: assert_float(Float::INFINITY, 1.0) #=> fail: Expected 1.0 to be Infinity. assert_float(-Float::INFINITY, 1) #=> fail: Expected 1 to be -Infinity. assert_float(1, 1/0) #=> fail: Expected Infinity to be 1. assert_float(1, -1/0) #=> fail: Expected -Infinity to be 1. assert_float(1.0, Float::NAN) #=> fail: Expected NaN to be 1.0. assert_float(Float::NAN, 1) #=> fail: Expected 1 to be NaN. | |||
| 2019-03-23 | Refactor `t_print` for test | KOBAYASHI Shuji | |
| 2019-03-21 | Remove redundant content in assertion failure message and diff | KOBAYASHI Shuji | |
| Based on minitest RubyGem. Example of before this patch: - Assertion[1] Failed: Expected 1 to be 2 Expected: 2 Actual: 1 - Assertion[2] Failed: Expected [1, 3] to include 2 Collection: [1, 3] Object: 2 Example of after this patch: - Assertion[1] Expected: 2 Actual: 1 - Assertion[2] Expected [1, 3] to include 2. | |||
| 2019-03-13 | Do not raise an exception when bintest fail | KOBAYASHI Shuji | |
| - An exception do not raise when mrbtest fail. - There are no useful informations in exception message and backtrace. | |||
| 2019-03-07 | Set `GEMNAME` on bintest | KOBAYASHI Shuji | |
| 2019-03-05 | Count skip tests | KOBAYASHI Shuji | |
| 2019-03-04 | `GEMNAME` is undefined in bintest | KOBAYASHI Shuji | |
| ref: https://github.com/mruby/mruby/pull/4296#discussion_r261868710 | |||
| 2019-03-03 | Simplify `MRubyTestSkip` in `test/assert.rb` | KOBAYASHI Shuji | |
| 2019-02-26 | Remove unneeded `=>` in test skip/error messages | KOBAYASHI Shuji | |
| 2019-02-24 | Refine mrbgem name in assertion failure/skip message for core test | KOBAYASHI Shuji | |
| 2019-02-21 | Merge pull request #4290 from shuujii/refactor-exception-handling-in-assert | Yukihiro "Matz" Matsumoto | |
| Refactor exception handling in `assert` | |||
| 2019-02-21 | Refactor exception handling in `assert` | KOBAYASHI Shuji | |
| 2019-02-20 | `assert_true`/`assert_false` should pass when actual is only `true`/`false` | KOBAYASHI Shuji | |
| For the following reasons: - Previous behavior is confusable because it's different from test/unit rubygem's `assert_true` - Tests may pass unintentionally in an inappropriate way; ref #4285 #4287 | |||
| 2019-02-14 | Lazy message/diff creation for assertion in `test/assert.rb` | KOBAYASHI Shuji | |
| Include the following changes too: - Extract part of logic with block to a method - Use `var ||= ...` instead of `var = ... unless var` - Unify using parentheses for `t_print` - Change methods order | |||
| 2019-02-09 | Always through `assert_true` for assertion methods in `test/assert.rb` | KOBAYASHI Shuji | |
| 2019-01-05 | Add `assert_same` and `assert_not_same` | KOBAYASHI Shuji | |
| 2018-12-21 | Fix undefined variable is using | dearblue | |
| 2017-12-09 | Use same format between Fail and Skip | bamchoh | |
| We can see gem name in skip message by this fix | |||
| 2017-08-30 | Allowed to pass multiple exceptions to assert_raise | Christopher Aue | |
| 2017-08-29 | Refactored #assert_raise and #assert_nothing_raised | Christopher Aue | |
| 2017-07-11 | fixed printing failed assertions | Christopher Aue | |
| 2017-06-22 | Silence rubocop warnings. | Yukihiro "Matz" Matsumoto | |
| 2017-06-21 | use `unless` instead of `if not`. | Yukihiro "Matz" Matsumoto | |
| 2017-01-07 | Pass when assert returns a false value | Ryo Okubo | |
| 2016-11-24 | Fixed float tolerance in tests when MRB_USE_FLOAT is set | Tomasz Dąbrowski | |
| 2016-11-10 | test/assert.rb should not use puts | Tomasz Dąbrowski | |
| 2015-12-31 | __t_printstr__ may not be available for tests | Yukihiro "Matz" Matsumoto | |
| 2015-12-30 | simpler t_print | Yukihiro "Matz" Matsumoto | |
| 2015-01-03 | Round execution time | Daniel Bovensiepen | |
| 2014-07-19 | Print backtrace of crashed test in verbose mode. | take_cheeze | |
| 2014-04-30 | remove trailing spaces | Nobuyoshi Nakada | |
| 2014-03-31 | Show error class name when raise Error | ksss | |
| 2014-03-26 | revert 813ba5 since #1949 fixed | Yukihiro "Matz" Matsumoto | |
| 2014-03-26 | Don't use ensure to fix crash of mruby-eval test. | take_cheeze | |
| 2014-03-24 | remove unnecessary operator method call; ref #1927 | Yukihiro "Matz" Matsumoto | |
| 2014-03-24 | Count crashed tests in total tests count. | take_cheeze | |
| 2014-03-16 | Refactor assert_true | Jun Hiroe | |
| 2014-03-11 | add assertion method `assert_nothing_raised' | ksss | |
| 2013-11-16 | make test/assert.rb cruby compatible | fleuria | |
| 2013-08-01 | Fix assignment of block as actual value and not expected | Daniel Bovensiepen | |
| 2013-06-15 | Implement assert_float and add block mode to assert_equal and assert_not_equal | Daniel Bovensiepen | |
| 2013-06-09 | Add assert_not_include to test environment | Daniel Bovensiepen | |
| 2013-06-09 | Add assert_not_equal | Daniel Bovensiepen | |
| 2013-05-12 | Implemented ObjectSpace.count_objects to count the number of allocated ↵ | Ryan Scott | |
| objects for each type | |||
| 2013-05-08 | Implement fallback print method for testing environment in case mruby-print ↵ | Daniel Bovensiepen | |
| GEM wasn't included. | |||
| 2013-03-02 | bugfix: assert_raise | Akira Yumiyama | |
| 2013-02-28 | Move Math::TOLERANCE to mruby-math | Daniel Bovensiepen | |
| 2013-02-25 | Add skip method for test | mattn | |
| 2013-02-25 | rename assert_raises to assert_raise | Yukihiro Matz Matsumoto | |
| 2013-02-25 | remove assert_instance_of and assert_kind_of which might hinder duck typing | Yukihiro Matz Matsumoto | |
