Commit 5091d047 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Fix "Warn if assertion is missing inside `assert`"; ref ff43b2b9

parent ff43b2b9
...@@ -108,7 +108,7 @@ def assert(str = 'Assertion failed', iso = '') ...@@ -108,7 +108,7 @@ def assert(str = 'Assertion failed', iso = '')
$ko_test += 1 $ko_test += 1
t_print('F') t_print('F')
end end
elsif $mrbtest_assert_idx == 0 elsif $mrbtest_assert_idx[-1] == 0
$asserts.push(assertion_string('Warn: ', str, iso, 'no assertion')) $asserts.push(assertion_string('Warn: ', str, iso, 'no assertion'))
$warning_test += 1 $warning_test += 1
t_print('W') t_print('W')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment