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

ruby-changes:3286

From: ko1@a...
Date: 29 Dec 2007 13:28:28 +0900
Subject: [ruby-changes:3286] akr - Ruby:r14779 (trunk): add tests.

akr	2007-12-29 13:27:39 +0900 (Sat, 29 Dec 2007)

  New Revision: 14779

  Modified files:
    trunk/bootstraptest/test_knownbug.rb
    trunk/test/ruby/test_m17n.rb

  Log:
    add tests.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_m17n.rb?r1=14779&r2=14778
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=14779&r2=14778

Index: bootstraptest/test_knownbug.rb
===================================================================
--- bootstraptest/test_knownbug.rb	(revision 14778)
+++ bootstraptest/test_knownbug.rb	(revision 14779)
@@ -2,3 +2,17 @@
 # This test file concludes tests which point out known bugs.
 # So all tests will cause failure.
 #
+
+assert_normal_exit %q{
+  File.read("/dev/null").clone
+}, '[ruby-dev:32819] reported by Kazuhiro NISHIYAMA'
+
+assert_normal_exit %q{
+  class Foo
+     def self.add_method
+       class_eval("def some-bad-name; puts 'hello' unless @some_variable.some_function(''); end")
+     end
+  end
+  Foo.add_method
+}, '[ruby-core:14556] reported by Frederick Cheung'
+
Index: test/ruby/test_m17n.rb
===================================================================
--- test/ruby/test_m17n.rb	(revision 14778)
+++ test/ruby/test_m17n.rb	(revision 14779)
@@ -1865,6 +1865,13 @@
     assert_equal(Encoding::EUC_JP, "\xa4\xa2".force_encoding("euc-jp").gsub(/./, '\&').encoding)
   end
 
+  def test_gsub
+    s = 'abc'
+    s.ascii_only?
+    s.gsub!(/b/, "\x80")
+    assert_equal(false, s.ascii_only?, "[ruby-core:14566] reported by Sam Ruby")
+  end
+
   def test_regexp_match
     assert_equal([0,0], //.match("\xa1\xa1".force_encoding("euc-jp"),-1).offset(0))
   end

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

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