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

ruby-changes:16432

From: yugui <ko1@a...>
Date: Thu, 24 Jun 2010 10:59:38 +0900 (JST)
Subject: [ruby-changes:16432] Ruby:r28417 (ruby_1_9_2): merges r28312 from trunk into ruby_1_9_2.

yugui	2010-06-24 10:59:18 +0900 (Thu, 24 Jun 2010)

  New Revision: 28417

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

  Log:
    merges r28312 from trunk into ruby_1_9_2.
    --
    * test/ruby/test_rubyoptions.rb: add a simple test for __END__ and
      DATA.

  Modified files:
    branches/ruby_1_9_2/ChangeLog
    branches/ruby_1_9_2/test/ruby/test_rubyoptions.rb

Index: ruby_1_9_2/ChangeLog
===================================================================
--- ruby_1_9_2/ChangeLog	(revision 28416)
+++ ruby_1_9_2/ChangeLog	(revision 28417)
@@ -1,3 +1,8 @@
+Sun Jun 13 15:46:07 2010  Yusuke Endoh  <mame@t...>
+
+	* test/ruby/test_rubyoptions.rb: add a simple test for __END__ and
+	  DATA.
+
 Fri Jun 11 22:59:31 2010  Tanaka Akira  <akr@f...>
 
 	* include/ruby/missing.h (isnan): fix compilation error on OpenBSD.
Index: ruby_1_9_2/test/ruby/test_rubyoptions.rb
===================================================================
--- ruby_1_9_2/test/ruby/test_rubyoptions.rb	(revision 28416)
+++ ruby_1_9_2/test/ruby/test_rubyoptions.rb	(revision 28417)
@@ -401,4 +401,17 @@
       nil,
       opts)
   end
+
+  def test_DATA
+    t = Tempfile.new(["test_ruby_test_rubyoption", ".rb"])
+    t.puts "puts DATA.read.inspect"
+    t.puts "__END__"
+    t.puts "foo"
+    t.puts "bar"
+    t.puts "baz"
+    t.close
+    assert_in_out_err([t.path], "", %w("foo\\nbar\\nbaz\\n"), [])
+  ensure
+    t.close(true) if t
+  end
 end

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

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