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
Родитель b56b8ec797
Коммит 3b23b45d48
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3582D74E1FEE4465
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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'