test/test_srs.rb in statsample-0.7.0 vs test/test_srs.rb in statsample-0.8.0

- old
+ new

@@ -1,11 +1,10 @@ -$:.unshift(File.dirname(__FILE__)+'/../lib/') -require 'statsample' -require 'test/unit' +require(File.dirname(__FILE__)+'/test_helpers.rb') -class StatsampleSrsTestCase < Test::Unit::TestCase - def test_std_error - 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) - assert_in_delta(0.0289,Statsample::SRS.proportion_sd_kp_wor(0.5,100,150),0.001) - end + +class StatsampleSrsTestCase < MiniTest::Unit::TestCase + def test_std_error + 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) + assert_in_delta(0.0289,Statsample::SRS.proportion_sd_kp_wor(0.5,100,150),0.001) + end end