Commit cb1a80e7 authored by Akira Moroo's avatar Akira Moroo

Add String#rjust test to mruby-string-ext

parent e86bc6bb
......@@ -421,6 +421,13 @@ assert('String#ljust') do
assert_equal "hello", "hello".ljust(-3)
end
assert('String#rjust') do
assert_equal "hello", "hello".rjust(4)
assert_equal " hello", "hello".rjust(20)
assert_equal "123412341234123hello", "hello".rjust(20, '1234')
assert_equal "hello", "hello".rjust(-3)
end
assert('String#upto') do
a = "aa"
start = "aa"
......
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