Browse Source

Update specs to 0.24.1

pull/3/head
Arthur POULET 4 years ago
parent
commit
90da6764cf
No known key found for this signature in database GPG Key ID: FC154EA63FF5D8BC
  1. 6
      spec/binomial_distribution.cr
  2. 4
      spec/normale_distribution.cr

6
spec/binomial_distribution.cr

@ -21,9 +21,9 @@ describe BinomialDistribution do
end
it "initialize errors" do
expect_raises { BinomialDistribution(Int32, Float64).new(-1) }
expect_raises { BinomialDistribution.new(0, -1) }
expect_raises { BinomialDistribution.new(0, 1.5) }
expect_raises(Math::DomainError) { BinomialDistribution(Int32, Float64).new(-1) }
expect_raises(Math::DomainError) { BinomialDistribution.new(0, -1) }
expect_raises(Math::DomainError) { BinomialDistribution.new(0, 1.5) }
end
it "distribute" do

4
spec/normale_distribution.cr

@ -41,7 +41,7 @@ describe NormaleDistribution::Persistant do
end
it "must fail" do
expect_raises { NormaleDistribution::Persistant(Int32, Float64).new standard_deviation: -1 }
expect_raises { NormaleDistribution::Persistant(Int32, Float64).new standard_deviation: 0 }
expect_raises(ArgumentError) { NormaleDistribution::Persistant(Int32, Float64).new standard_deviation: -1 }
expect_raises(ArgumentError) { NormaleDistribution::Persistant(Int32, Float64).new standard_deviation: 0 }
end
end

Loading…
Cancel
Save