зеркало из https://github.com/github/ruby.git
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:
Родитель
b56b8ec797
Коммит
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'
|
||||
|
|
Загрузка…
Ссылка в новой задаче