mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@902ab83
This commit is contained in:
parent
bb5f710887
commit
e0c5488ff9
56 changed files with 531 additions and 137 deletions
|
@ -11,7 +11,11 @@ describe "Integer#chr without argument" do
|
|||
|
||||
it "raises a RangeError is self is less than 0" do
|
||||
-> { -1.chr }.should raise_error(RangeError)
|
||||
-> { -bignum_value.chr }.should raise_error(RangeError)
|
||||
-> { (-bignum_value).chr }.should raise_error(RangeError)
|
||||
end
|
||||
|
||||
it "raises a RangeError if self is too large" do
|
||||
-> { 2206368128.chr(Encoding::UTF_8) }.should raise_error(RangeError)
|
||||
end
|
||||
|
||||
describe "when Encoding.default_internal is nil" do
|
||||
|
@ -162,7 +166,7 @@ describe "Integer#chr with an encoding argument" do
|
|||
# http://redmine.ruby-lang.org/issues/4869
|
||||
it "raises a RangeError is self is less than 0" do
|
||||
-> { -1.chr(Encoding::UTF_8) }.should raise_error(RangeError)
|
||||
-> { -bignum_value.chr(Encoding::EUC_JP) }.should raise_error(RangeError)
|
||||
-> { (-bignum_value).chr(Encoding::EUC_JP) }.should raise_error(RangeError)
|
||||
end
|
||||
|
||||
it "raises a RangeError if self is too large" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue