mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4605 from shuujii/fix-Warn-if-assertion-is-missing-inside-assert
Fix "Warn if assertion is missing inside `assert`"; ref ff43b2b9
This commit is contained in:
+1
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user