Explicitly assert that redefined backquote method is called
It has been used in some tests indirectly, but there was no direct test for redefinition in the toplevel.
This commit is contained in:
parent
b56b8ec797
commit
3b23b45d48
@ -70,6 +70,7 @@ if /wasi/ !~ target_platform
|
||||
assert_equal "foo\n", %q(`echo foo`)
|
||||
assert_equal "foo\n", %q(s = "foo"; `echo #{s}`)
|
||||
end
|
||||
assert_equal "ECHO FOO", %q(def `(s) s.upcase; end; `echo foo`)
|
||||
|
||||
# regexp
|
||||
assert_equal '', '//.source'
|
||||
|
Loading…
x
Reference in New Issue
Block a user