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

ruby-changes:36133

From: headius <ko1@a...>
Date: Sat, 1 Nov 2014 04:37:53 +0900 (JST)
Subject: [ruby-changes:36133] headius:r48214 (trunk): * test/psych/test_emitter.rb: Fix line_width test...initial value

headius	2014-11-01 04:37:38 +0900 (Sat, 01 Nov 2014)

  New Revision: 48214

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

  Log:
    * test/psych/test_emitter.rb: Fix line_width test...initial value
      is impl-specific and attr assignment always returns LHS.

  Modified files:
    trunk/ChangeLog
    trunk/test/psych/test_emitter.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48213)
+++ ChangeLog	(revision 48214)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct 31 18:58:02 2014  Charles Oliver Nutter  <headius@h...>
+
+	* test/psych/test_emitter.rb: Fix line_width test...initial value
+	  is impl-specific and attr assignment always returns LHS.
+
 Fri Oct 31 22:19:30 2014  Akinori MUSHA  <knu@i...>
 
 	* ext/digest/lib/digest.rb (Digest()): This function should now be
Index: test/psych/test_emitter.rb
===================================================================
--- test/psych/test_emitter.rb	(revision 48213)
+++ test/psych/test_emitter.rb	(revision 48214)
@@ -11,8 +11,7 @@ module Psych https://github.com/ruby/ruby/blob/trunk/test/psych/test_emitter.rb#L11
     end
 
     def test_line_width
-      assert_equal 0, @emitter.line_width
-      assert_equal 10, @emitter.line_width = 10
+      @emitter.line_width = 10
       assert_equal 10, @emitter.line_width
     end
 

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

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