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

ruby-changes:58751

From: manga_osyo <ko1@a...>
Date: Tue, 12 Nov 2019 21:04:41 +0900 (JST)
Subject: [ruby-changes:58751] 3816622fbe (master): Fixed `assert_equal` first argument to be expected.

https://git.ruby-lang.org/ruby.git/commit/?id=3816622fbe

From 3816622fbedd034d338fcb1bbdc80d163e302ae6 Mon Sep 17 00:00:00 2001
From: manga_osyo <manga.osyo@g...>
Date: Mon, 11 Nov 2019 14:59:17 +0900
Subject: Fixed `assert_equal` first argument to be expected.


diff --git a/test/reline/test_reline.rb b/test/reline/test_reline.rb
index e88aeee..d6c7bd0 100644
--- a/test/reline/test_reline.rb
+++ b/test/reline/test_reline.rb
@@ -218,14 +218,14 @@ class Reline::Test < Reline::TestCase https://github.com/ruby/ruby/blob/trunk/test/reline/test_reline.rb#L218
 
   def test_readmultiline
     # readmultiline is module function
-    assert_equal(Reline.methods.include?(:readmultiline), true)
-    assert_equal(Reline.private_instance_methods.include?(:readmultiline), true)
+    assert_equal(true, Reline.methods.include?(:readmultiline))
+    assert_equal(true, Reline.private_instance_methods.include?(:readmultiline))
   end
 
   def test_readline
     # readline is module function
-    assert_equal(Reline.methods.include?(:readline), true)
-    assert_equal(Reline.private_instance_methods.include?(:readline), true)
+    assert_equal(true, Reline.methods.include?(:readline))
+    assert_equal(true, Reline.private_instance_methods.include?(:readline))
   end
 
   def test_inner_readline
-- 
cgit v0.10.2


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

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