test/test_srs.rb in statsample-0.3.4 vs test/test_srs.rb in statsample-0.4.0

- old
+ new

@@ -2,14 +2,10 @@ require 'statsample' require 'test/unit' class StatsampleSrsTestCase < Test::Unit::TestCase def test_std_error - if HAS_GSL assert_equal(384,Statsample::SRS.estimation_n0(0.05,0.5,0.95).to_i) assert_equal(108,Statsample::SRS.estimation_n(0.05,0.5,150,0.95).to_i) - else - puts "Statsample::SRS.estimation_n0 not tested (needs ruby-gsl)" - end assert_in_delta(0.0289,Statsample::SRS.proportion_sd_kp_wor(0.5,100,150),0.001) end end