spec/bunch_spec.rb in games_dice-0.2.3 vs spec/bunch_spec.rb in games_dice-0.2.4
- old
+ new
@@ -258,15 +258,13 @@
bunch.min.should == 2
bunch.max.should > 100
end
it "should have a mean value of roughly 18.986" do
- pending "Too slow"
bunch.probabilities.expected.should be_within(1e-9).of 18.9859925804
end
it "should calculate probabilities correctly" do
- pending "Too slow"
prob_hash = bunch.probabilities.to_h
prob_hash[2].should be_within(1e-10).of 0.00001
prob_hash[3].should be_within(1e-10).of 0.00005
prob_hash[4].should be_within(1e-10).of 0.00031
prob_hash[5].should be_within(1e-10).of 0.00080