ruby-changes:61252
From: aycabta <ko1@a...>
Date: Thu, 14 May 2020 13:35:29 +0900 (JST)
Subject: [ruby-changes:61252] 978e691c86 (master): Restore Readline.completion_case_fold in test
https://git.ruby-lang.org/ruby.git/commit/?id=978e691c86 From 978e691c86b9a4e6d5d6af7755f532505dca2690 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Tue, 12 May 2020 14:47:03 +0900 Subject: Restore Readline.completion_case_fold in test diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 7ac2212..52ca698 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -150,10 +150,13 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L150 def test_completion_case_fold expected = [true, false, "string", {"a" => "b"}] + completion_case_fold = Readline.completion_case_fold expected.each do |e| Readline.completion_case_fold = e assert_equal(e, Readline.completion_case_fold) end + ensure + Readline.completion_case_fold = completion_case_fold end def test_completion_proc_empty_result -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/