mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@875a09e
This commit is contained in:
parent
a06301b103
commit
5c276e1cc9
1247 changed files with 5316 additions and 5028 deletions
|
@ -11,11 +11,11 @@ describe :math_atanh_base, shared: true do
|
|||
end
|
||||
|
||||
it "raises a TypeError if the argument is nil" do
|
||||
lambda { @object.send(@method, nil) }.should raise_error(TypeError)
|
||||
-> { @object.send(@method, nil) }.should raise_error(TypeError)
|
||||
end
|
||||
|
||||
it "raises a TypeError if the argument is not a Numeric" do
|
||||
lambda { @object.send(@method, "test") }.should raise_error(TypeError)
|
||||
-> { @object.send(@method, "test") }.should raise_error(TypeError)
|
||||
end
|
||||
|
||||
it "returns Infinity if x == 1.0" do
|
||||
|
@ -35,10 +35,10 @@ end
|
|||
|
||||
describe :math_atanh_no_complex, shared: true do
|
||||
it "raises a Math::DomainError for arguments greater than 1.0" do
|
||||
lambda { @object.send(@method, 1.0 + Float::EPSILON) }.should raise_error(Math::DomainError)
|
||||
-> { @object.send(@method, 1.0 + Float::EPSILON) }.should raise_error(Math::DomainError)
|
||||
end
|
||||
|
||||
it "raises a Math::DomainError for arguments less than -1.0" do
|
||||
lambda { @object.send(@method, -1.0 - Float::EPSILON) }.should raise_error(Math::DomainError)
|
||||
-> { @object.send(@method, -1.0 - Float::EPSILON) }.should raise_error(Math::DomainError)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue