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:
Nobuyoshi Nakada 2024-02-17 17:16:17 +09:00
parent b56b8ec797
commit 3b23b45d48
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -70,6 +70,7 @@ if /wasi/ !~ target_platform
assert_equal "foo\n", %q(`echo foo`) assert_equal "foo\n", %q(`echo foo`)
assert_equal "foo\n", %q(s = "foo"; `echo #{s}`) assert_equal "foo\n", %q(s = "foo"; `echo #{s}`)
end end
assert_equal "ECHO FOO", %q(def `(s) s.upcase; end; `echo foo`)
# regexp # regexp
assert_equal '', '//.source' assert_equal '', '//.source'