ruby-changes:4913
From: ko1@a...
Date: Wed, 14 May 2008 00:57:41 +0900 (JST)
Subject: [ruby-changes:4913] mame - Ruby:r16406 (trunk): * test/ruby/test_io_m17n.rb: remove a duplicative method.
mame 2008-05-14 00:57:22 +0900 (Wed, 14 May 2008)
New Revision: 16406
Modified files:
trunk/ChangeLog
trunk/test/ruby/test_array.rb
trunk/test/ruby/test_env.rb
trunk/test/ruby/test_file_exhaustive.rb
trunk/test/ruby/test_fixnum.rb
trunk/test/ruby/test_hash.rb
trunk/test/ruby/test_io_m17n.rb
trunk/test/ruby/test_rational.rb
trunk/test/ruby/test_utf16.rb
Log:
* test/ruby/test_io_m17n.rb: remove a duplicative method.
* test/ruby/test_utf16.rb: rename a conflicting method name.
* test/ruby/test_array.rb: ditto.
* test/ruby/test_file_exhaustive.rb: ditto.
* test/ruby/test_hash.rb: ditto.
* test/ruby/test_env.rb: ditto.
* test/ruby/test_fixnum.rb: ditto.
* test/ruby/test_rational.rb: ditto.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_hash.rb?r1=16406&r2=16405&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_file_exhaustive.rb?r1=16406&r2=16405&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_fixnum.rb?r1=16406&r2=16405&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16406&r2=16405&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_rational.rb?r1=16406&r2=16405&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_io_m17n.rb?r1=16406&r2=16405&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_env.rb?r1=16406&r2=16405&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_utf16.rb?r1=16406&r2=16405&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_array.rb?r1=16406&r2=16405&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 16405)
+++ ChangeLog (revision 16406)
@@ -1,3 +1,21 @@
+Wed May 14 00:55:56 2008 Yusuke Endoh <mame@t...>
+
+ * test/ruby/test_io_m17n.rb: remove a duplicative method.
+
+ * test/ruby/test_utf16.rb: rename a conflicting method name.
+
+ * test/ruby/test_array.rb: ditto.
+
+ * test/ruby/test_file_exhaustive.rb: ditto.
+
+ * test/ruby/test_hash.rb: ditto.
+
+ * test/ruby/test_env.rb: ditto.
+
+ * test/ruby/test_fixnum.rb: ditto.
+
+ * test/ruby/test_rational.rb: ditto.
+
Wed May 14 00:45:58 2008 Yusuke Endoh <mame@t...>
* eval_method.c (rb_add_method): fix check for warning when
Index: test/ruby/test_utf16.rb
===================================================================
--- test/ruby/test_utf16.rb (revision 16405)
+++ test/ruby/test_utf16.rb (revision 16406)
@@ -281,7 +281,7 @@
assert_str_equal("cd".encode("utf-16be"), r[1])
end
- def test_count
+ def test_count2
e = "abc".count("^b")
assert_equal(e, "abc".encode("utf-16be").count("^b".encode("utf-16be")))
assert_equal(e, "abc".encode("utf-16le").count("^b".encode("utf-16le")))
Index: test/ruby/test_io_m17n.rb
===================================================================
--- test/ruby/test_io_m17n.rb (revision 16405)
+++ test/ruby/test_io_m17n.rb (revision 16406)
@@ -120,15 +120,6 @@
}
end
- def test_open_w_enc
- with_tmpdir {
- open("tmp", "w:euc-jp") {|f|
- assert_equal(Encoding::EUC_JP, f.external_encoding)
- assert_equal(nil, f.internal_encoding)
- }
- }
- end
-
def test_stdin
assert_equal(Encoding.default_external, STDIN.external_encoding)
assert_equal(nil, STDIN.internal_encoding)
Index: test/ruby/test_array.rb
===================================================================
--- test/ruby/test_array.rb (revision 16405)
+++ test/ruby/test_array.rb (revision 16406)
@@ -1401,7 +1401,7 @@
assert_equal("[...]", a.join)
end
- def test_to_a
+ def test_to_a2
klass = Class.new(Array)
a = klass.new.to_a
assert_equal([], a)
Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb (revision 16405)
+++ test/ruby/test_file_exhaustive.rb (revision 16406)
@@ -339,7 +339,7 @@
assert_raise(Errno::EEXIST) { File.link(@file, @file) }
end
- def test_symlink
+ def test_symlink2
return unless @symlinkfile
assert_equal(@file, File.readlink(@symlinkfile))
assert_raise(Errno::EINVAL) { File.readlink(@file) }
Index: test/ruby/test_hash.rb
===================================================================
--- test/ruby/test_hash.rb (revision 16405)
+++ test/ruby/test_hash.rb (revision 16406)
@@ -721,7 +721,7 @@
assert_equal({3=>4,5=>6}, {1=>2,3=>4,5=>6}.select {|k, v| k + v >= 7 })
end
- def test_clear
+ def test_clear2
assert_equal({}, {1=>2,3=>4,5=>6}.clear)
h = {1=>2,3=>4,5=>6}
h.each { h.clear }
Index: test/ruby/test_env.rb
===================================================================
--- test/ruby/test_env.rb (revision 16405)
+++ test/ruby/test_env.rb (revision 16406)
@@ -266,7 +266,7 @@
assert_raise(ArgumentError) { ENV.assoc("foo\0bar") }
end
- def test_has_value
+ def test_has_value2
ENV.clear
assert(!ENV.has_value?("foo"))
ENV["test"] = "foo"
Index: test/ruby/test_fixnum.rb
===================================================================
--- test/ruby/test_fixnum.rb (revision 16405)
+++ test/ruby/test_fixnum.rb (revision 16406)
@@ -134,7 +134,7 @@
assert_raise(ArgumentError) { 10.to_s(1) }
end
- def test_plus
+ def test_plus2
assert_equal(2, 1 + 1)
assert_equal(4294967297, 1 + 2**32)
assert_equal(2.0, 1 + 1.0)
Index: test/ruby/test_rational.rb
===================================================================
--- test/ruby/test_rational.rb (revision 16405)
+++ test/ruby/test_rational.rb (revision 16406)
@@ -951,7 +951,7 @@
assert_equal(0, Rational(0, 2**100))
end
- def test_unify
+ def test_unify2
f = defined?(Rational::Unify)
Rational.const_set(:Unify, true) unless f
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/