- 29 Mar, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix missing assertions in `mruby-math` test
-
Yukihiro "Matz" Matsumoto authored
fixes build on OpenBSD.
-
Tomoyuki Sahara authored
fixes build on OpenBSD.
-
KOBAYASHI Shuji authored
-
- 28 Mar, 2019 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_sym2str` in implementation of `Symbol#to_s`
-
KOBAYASHI Shuji authored
-
- 27 Mar, 2019 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
* rename `sym2name` to `sym2name_len`. * `MRB_API` -> `static`
-
Yukihiro "Matz" Matsumoto authored
Remove unused variable in `each_backtrace()`
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
For short symbols with alpha numeric characters, `mrb_sym2name_len()` returns the same buffer `mrb->symbuf`. Some occasion, we forget the fact that the second call could overwrite the result of first call of the function. We have prepared the static function `sym2name()` which specifies the buffer region for inline packed symbols and use the function in `mrb_sym_to_s`.
-
Yukihiro "Matz" Matsumoto authored
-
- 26 Mar, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix dealing with infinity and NaN in `test/assert.rb:assert_float`
-
KOBAYASHI Shuji authored
`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.
-
Yukihiro "Matz" Matsumoto authored
Functions to add prototypes to headers: * mrb_ary_splice() * mrb_notimplement() * mrb_vformat() * mrb_cstr_to_dbl() * mrb_cstr_to_inum() Functions to be made `static` (`MRB_API` was not needed): * mrb_mod_module_function() * mrb_obj_hash() * mrb_str_len_to_inum() Functions to remove `MRB_API` from definitions (referenced from within `libmruby`): * mrb_mod_cv_defined() * mrb_mod_cv_get() * mrb_f_send()
-
- 25 Mar, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Remove implementation of `Symbol#===`
-
KOBAYASHI Shuji authored
For reducing program size.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 24 Mar, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix arguments spec in `src/proc.c`
-
Yukihiro "Matz" Matsumoto authored
Refactor `t_print` for test
-
KOBAYASHI Shuji authored
-
- 23 Mar, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 22 Mar, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Simplify `assert_step` in `test/t/numeric.rb`
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4334 from shuujii/remove-redundant-content-in-assertion-failure-message-and-diff Remove redundant content in assertion failure message and diff
-
Yukihiro "Matz" Matsumoto authored
Fix `Float#eql?`
-
- 21 Mar, 2019 2 commits
-
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
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.
-
- 20 Mar, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4333 from shuujii/use-FrozenError-instead-of-RuntimeError-in-frozen-obj-mod-test Use `FrozenError` instead of `RuntimeError` in frozen object modification test
-
Yukihiro "Matz" Matsumoto authored
Use Rake instead of MiniRake on AppVeyor
-
- 19 Mar, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 18 Mar, 2019 1 commit
-
-
KOBAYASHI Shuji authored
1. Reduce build time Build time becomes less than half. In MiniRake, a way of using fiber may not be good. 2. Synchronize standard output No synchronized: mrbtest - Embeddable Ruby Test ........................... Total: 1165 (snip) Time: 1.19 seconds bintest - Command Binary Test ..................... Total: 21 (snip) Time: 0.39 seconds mrbtest - Embeddable Ruby Test ........................... Total: 1165 (snip) Skip: 23 Time: 1.15 seconds (snip) >>> Test cxx_abi <<< >>> Bintest host <<< >>> Test host <<< >>> Test full-debug <<< >>> Bintest cxx_abi <<< Synchronized: >>> Test full-debug <<< mrbtest - Embeddable Ruby Test ........................... Total: 1165 (snip) Time: 1.25 seconds >>> Test host <<< mrbtest - Embeddable Ruby Test ........................... Total: 1165 (snip) Time: 1.16 seconds >>> Bintest host <<< bintest - Command Binary Test ..................... Total: 21 (snip) Time: 0.41 seconds >>> Test cxx_abi <<< mrbtest - Embeddable Ruby Test (snip)
-
- 17 Mar, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix class/instance variable name validation
-
KOBAYASHI Shuji authored
- `@@?` etc are invalid class variable name. - `@1` etc are invalid instance variable name.
-
- 16 Mar, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Refine `appveyor.yml`
-