ruby-changes:59746
From: Ryuta <ko1@a...>
Date: Sun, 19 Jan 2020 13:06:53 +0900 (JST)
Subject: [ruby-changes:59746] af6563f024 (master): Fix typo s/test_ruby2_keywords_hash!/test_ruby2_keywords_hash/
https://git.ruby-lang.org/ruby.git/commit/?id=af6563f024 From af6563f0242487781038f6e5304fb375102aff66 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 2c44973..98ddbef 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -1772,7 +1772,7 @@ class TestHash < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_hash.rb#L1772 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/