Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #762 from kachick/implement-string-rjust
Implement String#rjust
- Loading branch information
Showing
with
16 additions
and 8 deletions.
@@ -1,11 +1,3 @@ | ||
fails:String#rjust with length, padding returns a new string of specified length with self right justified and padded with padstr | ||
fails:String#rjust with length, padding pads with whitespace if no padstr is given | ||
fails:String#rjust with length, padding returns self if it's longer than or as long as the specified length | ||
fails:String#rjust with length, padding taints result when self or padstr is tainted | ||
fails:String#rjust with length, padding tries to convert length to an integer using to_int | ||
fails:String#rjust with length, padding raises a TypeError when length can't be converted to an integer | ||
fails:String#rjust with length, padding tries to convert padstr to a string using to_str | ||
fails:String#rjust with length, padding raises a TypeError when padstr can't be converted | ||
fails:String#rjust with length, padding raises an ArgumentError when padstr is empty | ||
fails:String#rjust with length, padding returns subclass instances when called on subclasses | ||
fails:String#rjust with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self |