mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-proc-ext/proc.c (mrb_proc_inspect): update the format.
This commit is contained in:
@@ -49,7 +49,7 @@ mrb_proc_inspect(mrb_state *mrb, mrb_value self)
|
||||
const mrb_irep *irep = p->body.irep;
|
||||
const char *filename;
|
||||
int32_t line;
|
||||
mrb_str_cat_lit(mrb, str, "@");
|
||||
mrb_str_cat_lit(mrb, str, " ");
|
||||
|
||||
filename = mrb_debug_get_filename(mrb, irep, 0);
|
||||
mrb_str_cat_cstr(mrb, str, filename ? filename : "-");
|
||||
|
||||
@@ -30,7 +30,7 @@ assert('Proc#inspect') do
|
||||
else
|
||||
file = line = "-"
|
||||
end
|
||||
assert_match "#<Proc:0x*@#{file}:#{line}>", ins
|
||||
assert_match "#<Proc:0x* #{file}:#{line}>", ins
|
||||
end
|
||||
|
||||
assert('Proc#parameters') do
|
||||
|
||||
Reference in New Issue
Block a user