From 3b23b45d484f2fd7fef9dddfa73f854f34d6857b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 17 Feb 2024 17:16:17 +0900 Subject: [PATCH] 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. --- bootstraptest/test_literal.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstraptest/test_literal.rb b/bootstraptest/test_literal.rb index a0d4ee08c6..a30661a796 100644 --- a/bootstraptest/test_literal.rb +++ b/bootstraptest/test_literal.rb @@ -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'