mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@241f9e7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e59bf54b3a
commit
e87fb88be8
142 changed files with 1165 additions and 1078 deletions
|
@ -20,14 +20,12 @@ describe "Math.acos" do
|
|||
Math.acos(0.75).should be_close(0.722734247813416, TOLERANCE)
|
||||
end
|
||||
|
||||
conflicts_with :Complex do
|
||||
it "raises an Errno::EDOM if the argument is greater than 1.0" do
|
||||
lambda { Math.acos(1.0001) }.should raise_error(Errno::EDOM)
|
||||
end
|
||||
it "raises an Math::DomainError if the argument is greater than 1.0" do
|
||||
lambda { Math.acos(1.0001) }.should raise_error(Math::DomainError)
|
||||
end
|
||||
|
||||
it "raises an Errno::EDOM if the argument is less than -1.0" do
|
||||
lambda { Math.acos(-1.0001) }.should raise_error(Errno::EDOM)
|
||||
end
|
||||
it "raises an Math::DomainError if the argument is less than -1.0" do
|
||||
lambda { Math.acos(-1.0001) }.should raise_error(Math::DomainError)
|
||||
end
|
||||
|
||||
it "raises a TypeError if the string argument cannot be coerced with Float()" do
|
||||
|
|
|
@ -11,12 +11,10 @@ describe "Math.acosh" do
|
|||
Math.acosh(1.0).should be_close(0.0, TOLERANCE)
|
||||
end
|
||||
|
||||
conflicts_with :Complex do
|
||||
it "raises Errno::EDOM if the passed argument is less than -1.0 or greater than 1.0" do
|
||||
lambda { Math.acosh(1.0 - TOLERANCE) }.should raise_error(Errno::EDOM)
|
||||
lambda { Math.acosh(0) }.should raise_error(Errno::EDOM)
|
||||
lambda { Math.acosh(-1.0) }.should raise_error(Errno::EDOM)
|
||||
end
|
||||
it "raises Math::DomainError if the passed argument is less than -1.0 or greater than 1.0" do
|
||||
lambda { Math.acosh(1.0 - TOLERANCE) }.should raise_error(Math::DomainError)
|
||||
lambda { Math.acosh(0) }.should raise_error(Math::DomainError)
|
||||
lambda { Math.acosh(-1.0) }.should raise_error(Math::DomainError)
|
||||
end
|
||||
|
||||
it "raises a TypeError if the argument cannot be coerced with Float()" do
|
||||
|
|
|
@ -16,14 +16,12 @@ describe "Math.asin" do
|
|||
Math.asin(0.75).should be_close(0.8480620789814816,TOLERANCE)
|
||||
end
|
||||
|
||||
conflicts_with :Complex do
|
||||
it "raises an Errno::EDOM if the argument is greater than 1.0" do
|
||||
lambda { Math.asin(1.0001) }.should raise_error( Errno::EDOM)
|
||||
end
|
||||
it "raises an Math::DomainError if the argument is greater than 1.0" do
|
||||
lambda { Math.asin(1.0001) }.should raise_error( Math::DomainError)
|
||||
end
|
||||
|
||||
it "raises an Errno::EDOM if the argument is less than -1.0" do
|
||||
lambda { Math.asin(-1.0001) }.should raise_error( Errno::EDOM)
|
||||
end
|
||||
it "raises an Math::DomainError if the argument is less than -1.0" do
|
||||
lambda { Math.asin(-1.0001) }.should raise_error( Math::DomainError)
|
||||
end
|
||||
|
||||
it "raises a TypeError if the argument cannot be coerced with Float()" do
|
||||
|
|
|
@ -15,10 +15,8 @@ describe "Math.log10" do
|
|||
Math.log10(10e15).should be_close(16.0, TOLERANCE)
|
||||
end
|
||||
|
||||
conflicts_with :Complex do
|
||||
it "raises an Errno::EDOM if the argument is less than 0" do
|
||||
lambda { Math.log10(-1e-15) }.should raise_error( Errno::EDOM)
|
||||
end
|
||||
it "raises an Math::DomainError if the argument is less than 0" do
|
||||
lambda { Math.log10(-1e-15) }.should raise_error(Math::DomainError)
|
||||
end
|
||||
|
||||
it "raises a TypeError if the argument cannot be coerced with Float()" do
|
||||
|
|
|
@ -15,10 +15,8 @@ describe "Math.log" do
|
|||
Math.log(10e15).should be_close(36.8413614879047, TOLERANCE)
|
||||
end
|
||||
|
||||
conflicts_with :Complex do
|
||||
it "raises an Errno::EDOM if the argument is less than 0" do
|
||||
lambda { Math.log(-1e-15) }.should raise_error(Errno::EDOM)
|
||||
end
|
||||
it "raises an Math::DomainError if the argument is less than 0" do
|
||||
lambda { Math.log(-1e-15) }.should raise_error(Math::DomainError)
|
||||
end
|
||||
|
||||
it "raises a TypeError if the argument cannot be coerced with Float()" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue