Commit 469c6261 authored by Ryan Lopopolo's avatar Ryan Lopopolo

Add tests for String Ranges

Range#each depends on String#upto which is implemented in mruby-string-ext
which is why these tests live there.
parent f7d59dfe
assert('Range#max') do
# string Range depends on String#upto
assert_equal 'l', ('f'..'l').max
assert_equal 'e', ('a'...'f').max
assert_equal nil, ('z'..'l').max
end
assert('Range#min') do
# string Range depends on String#upto
assert_equal 'f', ('f'..'l').min
assert_equal nil, ('z'..'l').min
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