summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/enc/test_utf16.rb2
-rw-r--r--test/ruby/test_econv.rb2
-rw-r--r--test/ruby/test_hash.rb4
-rw-r--r--test/ruby/test_proc.rb2
4 files changed, 5 insertions, 5 deletions
diff --git a/test/ruby/enc/test_utf16.rb b/test/ruby/enc/test_utf16.rb
index 52850e6376..90a8314067 100644
--- a/test/ruby/enc/test_utf16.rb
+++ b/test/ruby/enc/test_utf16.rb
@@ -369,7 +369,7 @@ EOT
assert(r =~ s, "#{encdump(r)} =~ #{encdump(s)}")
end
- def test_casecmp
+ def test_casecmp2
assert_equal(0, "\0A".force_encoding("UTF-16BE").casecmp("\0a".force_encoding("UTF-16BE")))
assert_not_equal(0, "\0A".force_encoding("UTF-16LE").casecmp("\0a".force_encoding("UTF-16LE")))
assert_not_equal(0, "A\0".force_encoding("UTF-16BE").casecmp("a\0".force_encoding("UTF-16BE")))
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb
index 11f5bad2ad..cc03eaf218 100644
--- a/test/ruby/test_econv.rb
+++ b/test/ruby/test_econv.rb
@@ -886,7 +886,7 @@ class TestEncodingConverter < Test::Unit::TestCase
Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", universal_newline: true))
end
- def test_invalid_replace
+ def test_invalid_replace2
assert_raise(ArgumentError) {
broken = "\x80".force_encoding("euc-jp")
"".encode("euc-jp", :undef => :replace, :replace => broken)
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index 6f703d947c..79ce095733 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -376,7 +376,7 @@ class TestHash < Test::Unit::TestCase
assert_equal('nil', @h.fetch(nil))
end
- def test_key?
+ def test_key2?
assert(!@cls[].key?(1))
assert(!@cls[].key?(nil))
assert(@h.key?(nil))
@@ -648,7 +648,7 @@ class TestHash < Test::Unit::TestCase
assert_equal(hb, h2)
end
- def test_value?
+ def test_value2?
assert(!@cls[].value?(1))
assert(!@cls[].value?(nil))
assert(@h.value?(nil))
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb
index 213566903e..f6fd5c8ea0 100644
--- a/test/ruby/test_proc.rb
+++ b/test/ruby/test_proc.rb
@@ -620,7 +620,7 @@ class TestProc < Test::Unit::TestCase
assert_equal [1, 2, 3, 4, 5, 6, Proc, :x], (pr.call(1, 2, 3, 4, 5, 6, 7){|x| x})
end
- def test_proc_args_opt_and_block
+ def test_proc_args_opt_and_block2
pr = proc {|a,b,c=:c,d=:d,*e,&f|
[a, b, c, d, e, f.class, f&&f.call(:x)]
}