Skip to content
Browse files
Add String#rjust test to mruby-string-ext
  • Loading branch information
retrage committed Jan 30, 2016
1 parent e86bc6b commit cb1a80e74195f92ef6eca801d1e92a93788987db
Showing 1 changed file with 7 additions and 0 deletions.
@@ -421,6 +421,13 @@ def o.to_str
assert_equal "hello", "hello".ljust(-3)

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)

assert('String#upto') do
a = "aa"
start = "aa"

0 comments on commit cb1a80e

Please sign in to comment.