Removed try_convert method from Array and Hash.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-09-19 22:01:28 +09:00
parent b5d43a16a3
commit 5bbcea9b3b
4 changed files with 0 additions and 57 deletions
-7
View File
@@ -1,13 +1,6 @@
##
# Array(Ext) Test
assert("Array.try_convert") do
assert_nil Array.try_convert(0)
assert_nil Array.try_convert(nil)
assert_equal [], Array.try_convert([])
assert_equal [1,2,3], Array.try_convert([1,2,3])
end
assert("Array#assoc") do
s1 = [ "colors", "red", "blue", "green" ]
s2 = [ "letters", "a", "b", "c" ]