Commit 854c6197 authored by skandhas's avatar skandhas

fix spelling

parent 79dd12ba
##
# Enumerable(Ext) Test
assert("Enumrable#drop") do
assert("Enumerable#drop") do
a = [1, 2, 3, 4, 5, 0]
assert_equal a.drop(3), [4, 5, 0]
assert_equal a.drop(6), []
end
assert("Enumrable#drop_while") do
assert("Enumerable#drop_while") do
a = [1, 2, 3, 4, 5, 0]
assert_equal a.drop_while {|i| i < 3 }, [3, 4, 5, 0]
end
assert("Enumrable#take") do
assert("Enumerable#take") do
a = [1, 2, 3, 4, 5, 0]
assert_equal a.take(3), [1, 2, 3]
end
assert("Enumrable#take_while") do
assert("Enumerable#take_while") do
a = [1, 2, 3, 4, 5, 0]
assert_equal a.take_while {|i| i < 3 }, [1, 2]
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment