ruby-changes:60113
From: Ryuta <ko1@a...>
Date: Tue, 18 Feb 2020 15:30:39 +0900 (JST)
Subject: [ruby-changes:60113] 0643eb2e59 (ruby_2_7): Fix typo s/test_ruby2_keywords_hash!/test_ruby2_keywords_hash/
https://git.ruby-lang.org/ruby.git/commit/?id=0643eb2e59 From 0643eb2e59dbd80f9be001c2ec77c980e8aeff3f Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono <kamipo@g...> Date: Sun, 19 Jan 2020 12:49:40 +0900 Subject: Fix typo s/test_ruby2_keywords_hash!/test_ruby2_keywords_hash/ In #2818, `Hash.ruby2_keywords!` has renamed to `Hash.ruby2_keywords_hash`. diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 304bd58..0f6377c 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -1756,7 +1756,7 @@ class TestHash < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_hash.rb#L1756 assert_raise(TypeError) { Hash.ruby2_keywords_hash?(1) } end - def test_ruby2_keywords_hash! + def test_ruby2_keywords_hash hash = {k: 1} assert_equal(false, Hash.ruby2_keywords_hash?(hash)) hash = Hash.ruby2_keywords_hash(hash) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/