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

ruby-changes:11196

From: nobu <ko1@a...>
Date: Sat, 7 Mar 2009 12:31:43 +0900 (JST)
Subject: [ruby-changes:11196] Ruby:r22804 (trunk): * test/erb/test_erb.rb: reverted space sensitive test results.

nobu	2009-03-07 12:31:32 +0900 (Sat, 07 Mar 2009)

  New Revision: 22804

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

  Log:
    * test/erb/test_erb.rb: reverted space sensitive test results.
    * test/rdoc/test_rdoc_parser_c.rb: ditto.
    
    * test/rdoc/test_rdoc_ri_default_display.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/erb/test_erb.rb
    trunk/test/rdoc/test_rdoc_parser_c.rb
    trunk/test/rdoc/test_rdoc_ri_default_display.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22803)
+++ ChangeLog	(revision 22804)
@@ -1,3 +1,11 @@
+Sat Mar  7 12:31:30 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* test/erb/test_erb.rb: reverted space sensitive test results.
+
+	* test/rdoc/test_rdoc_parser_c.rb: ditto.
+
+	* test/rdoc/test_rdoc_ri_default_display.rb: ditto.
+
 Fri Mar  6 23:35:59 2009  Tanaka Akira  <akr@f...>
 
 	* lib/securerandom.rb (SecureRandom.urlsafe_base64): add optional
Index: test/rdoc/test_rdoc_parser_c.rb
===================================================================
--- test/rdoc/test_rdoc_parser_c.rb	(revision 22803)
+++ test/rdoc/test_rdoc_parser_c.rb	(revision 22804)
@@ -176,11 +176,11 @@
 
     comment = <<-EOF.chomp
 
-
+     
       Multiline comment goes here because this comment spans multiple lines.
       Multiline comment goes here because this comment spans multiple lines.
-
-
+      
+   
     EOF
     assert_equal ['MULTILINE', 'INT2FIX(1)', comment], constants.shift
     assert_equal ['MULTILINE_VALUE', '1', comment], constants.shift
@@ -189,8 +189,8 @@
 
       Multiline comment goes here because this comment spans multiple lines.
       Multiline comment goes here because this comment spans multiple lines.
-
-
+      
+   
     EOF
     assert_equal ['MULTILINE_NOT_EMPTY', 'INT2FIX(1)', comment], constants.shift
 
Index: test/rdoc/test_rdoc_ri_default_display.rb
===================================================================
--- test/rdoc/test_rdoc_ri_default_display.rb	(revision 22803)
+++ test/rdoc/test_rdoc_ri_default_display.rb	(revision 22804)
@@ -169,7 +169,7 @@
 ------------------------------------------------------- SomeClass::some_method
      SomeClass::some_method(arg1, arg2)
 
-     From
+     From 
 ------------------------------------------------------------------------------
      [no description]
     EOF
Index: test/erb/test_erb.rb
===================================================================
--- test/erb/test_erb.rb	(revision 22803)
+++ test/erb/test_erb.rb	(revision 22804)
@@ -212,7 +212,7 @@
 %%%
 EOS
     ans = <<EOS
-%
+% 
 % %%><%0
 % %%><%1
 %%
@@ -234,7 +234,7 @@
     klass.module_eval do
       def_erb_method('hello_world', erb)
     end
-    assert(klass.new.respond_to?('hello_world'))
+    assert(klass.new.respond_to?('hello_world'))    
   end
 
   def test_def_method_without_filename
@@ -300,7 +300,7 @@
 
   def test_keep_lineno
     src = <<EOS
-Hello,
+Hello, 
 % x = "World"
 <%= x%>
 % raise("lineno")
@@ -316,21 +316,21 @@
 
     src = <<EOS
 %>
-Hello,
+Hello, 
 <% x = "World%%>
 "%>
 <%= x%>
 EOS
 
     ans = <<EOS
-%>Hello,
+%>Hello, 
 World%>
 EOS
     assert_equal(ans, ERB.new(src, nil, '>').result)
 
     ans = <<EOS
 %>
-Hello,
+Hello, 
 
 World%>
 EOS
@@ -338,7 +338,7 @@
 
     ans = <<EOS
 %>
-Hello,
+Hello, 
 
 World%>
 
@@ -346,7 +346,7 @@
     assert_equal(ans, ERB.new(src).result)
 
     src = <<EOS
-Hello,
+Hello, 
 <% x = "World%%>
 "%>
 <%= x%>
@@ -381,7 +381,7 @@
 % y = 'Hello'
 <%- x = "World%%>
 "-%>
-<%= x %><%- x = nil -%>
+<%= x %><%- x = nil -%> 
 <% raise("lineno") %>
 EOS
 
@@ -417,19 +417,19 @@
    <%- up = w.upcase -%>
    * <%= up %>
  <%- end -%>
-KeepNewLine <%- z = nil -%>
+KeepNewLine <%- z = nil -%> 
 EOS
 
    ans = <<EOS
 NotSkip  NotSkip
   * HELLO
   * WORLD
- NotSkip
+ NotSkip 
    * hello
    * HELLO
    * world
    * WORLD
-KeepNewLine
+KeepNewLine  
 EOS
    assert_equal(ans, ERB.new(src, nil, '-').result)
    assert_equal(ans, ERB.new(src, nil, '-%').result)

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

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