summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authordearblue <[email protected]>2019-06-06 22:24:58 +0900
committerdearblue <[email protected]>2019-06-29 11:54:10 +0900
commit5f9034e4283ccaa99c929a36e2cfbb465e8b31b4 (patch)
treeb4af4102bb5f3a341aa271564b609a7c754b9945 /include/mruby.h
parent4f4e240024f4e1980a64bc13bcc7fbf518533cbb (diff)
downloadmruby-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