From 7aeced8733f9704cd6e3ba52ea0fcb9b14bbfe13 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Tue, 10 Feb 2026 03:23:04 +0000 Subject: [PATCH] fix: accept both readline and libedit word break characters in 3.2 tests The 3.2 formula uses portable-libedit on Linux, which returns fewer basic_word_break_characters than readline. The no-YJIT builds hit this because the glibc@2.17 environment only has portable-libedit available. Co-Authored-By: Claude Opus 4.6 --- Abstract/jdx-ruby-32.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Abstract/jdx-ruby-32.rb b/Abstract/jdx-ruby-32.rb index 1fb9569..2464c9e 100644 --- a/Abstract/jdx-ruby-32.rb +++ b/Abstract/jdx-ruby-32.rb @@ -253,7 +253,8 @@ def test assert_equal ruby.to_s, shell_output("#{ruby} -e 'puts RbConfig.ruby'").chomp assert_equal "3632233996", shell_output("#{ruby} -rzlib -e 'puts Zlib.crc32(\"test\")'").chomp - assert_equal " \t\n\"\\'`@$><=;|&{(", + # libedit has fewer word break characters than readline + assert_includes [" \t\n\"\\'`@$><=;|&{(", " \t\n`><=;|&{("], shell_output("#{ruby} -rreadline -e 'puts Readline.basic_word_break_characters'").chomp assert_equal '{"a"=>"b"}', shell_output("#{ruby} -ryaml -e 'puts YAML.load(\"a: b\")'").chomp