test/tc_ludy_ext.rb in ludy-0.0.8 vs test/tc_ludy_ext.rb in ludy-0.0.9
- old
+ new
@@ -133,17 +133,17 @@
end
def test_unzip_and_untranspose
a = [1,2,3]
b = %w{a b c}
- assert_equal [a, b], a.zip(b).untranspose
+ assert_equal [a, b], a.zip(b).to_a.untranspose
assert_equal [a, b], [a, b].transpose.untranspose
- assert_equal a, a.zip(b).unzip
+ assert_equal a, a.zip(b).to_a.unzip
c = [nil, false, true]
- assert_equal [a, b, c], a.zip(b, c).untranspose
+ assert_equal [a, b, c], a.zip(b, c).to_a.untranspose
assert_equal [a, b, c], [a, b, c].transpose.untranspose
- assert_equal a, a.zip(b, c).unzip
+ assert_equal a, a.zip(b, c).to_a.unzip
end
def test_id_and_m
assert_equal 'XD', id('XD')
assert_equal 'Orz', 'Orz'.id