mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue