diff options
| author | dearblue <[email protected]> | 2019-06-06 22:24:58 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2019-06-29 11:54:10 +0900 |
| commit | 5f9034e4283ccaa99c929a36e2cfbb465e8b31b4 (patch) | |
| tree | b4af4102bb5f3a341aa271564b609a7c754b9945 /include/mruby.h | |
| parent | 4f4e240024f4e1980a64bc13bcc7fbf518533cbb (diff) | |
| download | mruby-5f9034e4283ccaa99c929a36e2cfbb465e8b31b4.tar.gz mruby-5f9034e4283ccaa99c929a36e2cfbb465e8b31b4.zip | |
Nested `assert` for mrbtest
When nesting `assert` used in test, it is indented and displayed.
Assertion numbers are concatenated by `"-"` at this time.
The purpose is to match the apparent numbers when failing with `assert_mruby`
which is defined by `mrbgems/mruby-bin-mruby/bintest/mruby.rb` for example.
Child assertions "skip" and "info" are reported as parent assertions "info"
and `$ok_test += 1`. The child assertions "ko" and "crash" are reported as the
parent assertion "ko" and `$ko_test += 1`.
When child assertions are mixed, "ko" takes precedence.
Incompatibility:
- `$mrbtest_assert_idx` takes `nil` or an integer array object.
So far it was `nil` or an integer.
- `$asserts` points to the top of the internal stack in the `assert`.
- `$mrbtest_assert` points to the top of the internal stack in `assert`.
Diffstat (limited to 'include/mruby.h')
0 files changed, 0 insertions, 0 deletions
