summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-test/driver.c
AgeCommit message (Collapse)Author
2019-08-01Add new specifiers/modifiers to format string of `mrb_vfromat()`KOBAYASHI Shuji
Format sequence syntax: %[modifier]specifier Modifiers: ----------+------------------------------------------------------------ Modifier | Meaning ----------+------------------------------------------------------------ ! | Convert to string by corresponding `inspect` instead of | corresponding `to_s`. ----------+------------------------------------------------------------ Specifiers: ----------+----------------+-------------------------------------------- Specifier | Argument Type | Note ----------+----------------+-------------------------------------------- c | char | d,i | mrb_int | f | mrb_float | l | char*, mrb_int | Arguments are string and length. n | mrb_sym | s | char* | Argument is NUL terminated string. t | mrb_value | Convert to type (class) of object. v,S | mrb_value | C | struct RClass* | T | mrb_value | Convert to real type (class) of object. Y | mrb_value | Same as `!v` if argument is `true`, `false` | | or `nil`, otherwise same as `T`. % | - | Convert to percent sign itself (no argument | | taken). ----------+----------------+-------------------------------------------- This change will increase the binary size, but replacing all format strings with new specifiers/modifiers will decrease the size because it reduces inline expansion of `mrb_obj_value()`, etc. at the caller.
2019-07-29Resolved conflicts in #4320Yukihiro "Matz" Matsumoto
2019-04-22Merge pull request #4356 from shuujii/add-assert_match-and-assert_not_matchYukihiro "Matz" Matsumoto
Add `assert_match` and `assert_not_match`
2019-04-14Add `assert_match` and `assert_not_match`KOBAYASHI Shuji
2019-04-10Fixed old style declaration; ref #4365Yukihiro "Matz" Matsumoto
2019-03-23Refactor `t_print` for testKOBAYASHI Shuji
2019-03-13Do not raise an exception when bintest failKOBAYASHI Shuji
- An exception do not raise when mrbtest fail. - There are no useful informations in exception message and backtrace.
2019-03-07Add a missing file for #4314KOBAYASHI Shuji
2019-02-22Integrate `init_mrbtest.c` to `driver.c` in `mruby-test` mrbgemKOBAYASHI Shuji
- `mrbgemtest_init()` is needed if `DISABLE_GEMS` is enabled because core tests are run as part of `mruby-test` mrbgem (moreover, `DISABLE_GEMS` is disabled when `enable_test` is used in build config). - For the same reason `mrb_open_core()` etc for core tests is unneeded.
2017-11-04Merge branch 'master' of github.com:mruby/mrubyYAMAMOTO Masaya
2017-10-28Flush stdout after every print from testsYukihiro "Matz" Matsumoto
2017-10-11Test for MRB_WITHOUT_FLOATYAMAMOTO Masaya
2017-09-27fix: mrbgems\mruby-test\driver.c(67): warning C4244: '=': conversion from ↵Tomasz Dąbrowski
'mrb_int' to 'int', possible loss of data
2016-11-24Fixed float tolerance in tests when MRB_USE_FLOAT is setTomasz Dąbrowski
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-08-22Move test source code and rake task to mrbgemZachary Scott