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 #67 from hanachin/update_integer_to_s
Update Integer#to_s signature and add test
- Loading branch information
Showing
3 changed files
with
86 additions
and
3 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
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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
class IntegerTest < StdlibTest | ||
target Integer | ||
using hook.refinement | ||
|
||
def test_to_s | ||
1.to_s | ||
1.to_s(2) | ||
1.to_s(3) | ||
1.to_s(4) | ||
1.to_s(5) | ||
1.to_s(6) | ||
1.to_s(7) | ||
1.to_s(8) | ||
1.to_s(9) | ||
1.to_s(10) | ||
1.to_s(11) | ||
1.to_s(12) | ||
1.to_s(13) | ||
1.to_s(14) | ||
1.to_s(15) | ||
1.to_s(16) | ||
1.to_s(17) | ||
1.to_s(18) | ||
1.to_s(19) | ||
1.to_s(20) | ||
1.to_s(21) | ||
1.to_s(22) | ||
1.to_s(23) | ||
1.to_s(24) | ||
1.to_s(25) | ||
1.to_s(26) | ||
1.to_s(27) | ||
1.to_s(28) | ||
1.to_s(29) | ||
1.to_s(30) | ||
1.to_s(31) | ||
1.to_s(32) | ||
1.to_s(33) | ||
1.to_s(34) | ||
1.to_s(35) | ||
1.to_s(36) | ||
end | ||
end |