-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #762 from kachick/implement-string-rjust
Implement String#rjust
- Loading branch information
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters