Unverified Commit 428e34ab authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4605 from shuujii/fix-Warn-if-assertion-is-missing-inside-assert

Fix "Warn if assertion is missing inside `assert`"; ref ff43b2b9
parents a8001d69 5091d047
......@@ -108,7 +108,7 @@ def assert(str = 'Assertion failed', iso = '')
$ko_test += 1
t_print('F')
end
elsif $mrbtest_assert_idx == 0
elsif $mrbtest_assert_idx[-1] == 0
$asserts.push(assertion_string('Warn: ', str, iso, 'no assertion'))
$warning_test += 1
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