mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Refine the default values of flunk
The default message for the second argument should be set to the first argument because only one argument is normally specified.
This commit is contained in:
+1
-1
@@ -247,7 +247,7 @@ def pass
|
||||
assert_true(true)
|
||||
end
|
||||
|
||||
def flunk(msg = nil, diff = "Epic Fail!")
|
||||
def flunk(msg = "Epic Fail!", diff = "")
|
||||
assert_true(false, msg, diff)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user