[前][次][番号順一覧][スレッド一覧]

ruby-changes:54720

From: nobu <ko1@a...>
Date: Mon, 28 Jan 2019 20:53:57 +0900 (JST)
Subject: [ruby-changes:54720] nobu:r66937 (trunk): added assertion with method ref operator

nobu	2019-01-28 20:53:54 +0900 (Mon, 28 Jan 2019)

  New Revision: 66937

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66937

  Log:
    added assertion with method ref operator

  Modified files:
    trunk/test/ruby/test_refinement.rb
Index: test/ruby/test_refinement.rb
===================================================================
--- test/ruby/test_refinement.rb	(revision 66936)
+++ test/ruby/test_refinement.rb	(revision 66937)
@@ -235,6 +235,7 @@ class TestRefinement < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/ruby/test_refinement.rb#L235
       meth.call(3)
     EOS
     assert_equal(:refine_pow, eval_using(MethodIntegerPowEx, "2.pow(3)"))
+    assert_equal(:refine_pow, eval_using(MethodIntegerPowEx, "2.:pow.(3)"))
   end
 
   module InstanceMethodIntegerPowEx

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]