Sha256: cf614b3df4b1a58b07de80ba1aa93f6cdc53c7b92a708b885cbd66c18ed790b6

Contents?: true

Size: 894 Bytes

Versions: 11

Compression:

Stored size: 894 Bytes

Contents

require(File.expand_path(File.dirname(__FILE__)+'/helpers_tests.rb'))
class StatsampleAnovaOneWayTestCase < MiniTest::Unit::TestCase
  context(Statsample::Anova::OneWay) do
    setup do
      @ss_num=30.08
      @ss_den=87.88
      @df_num=2
      @df_den=21
      @anova=Statsample::Anova::OneWay.new(:ss_num=>@ss_num, :ss_den=>@ss_den, :df_num=>@df_num, :df_den=>@df_den)
    end
    should "Statsample::Anova.oneway respond to #oneway" do
      assert(Statsample::Anova.respond_to? :oneway)
    end
    should "return correct value for ms_num and ms_den" do
      assert_in_delta(15.04, @anova.ms_num, 0.01)
      assert_in_delta(4.18, @anova.ms_den, 0.01)
    end
    should "return correct value for f" do
      assert_in_delta(3.59, @anova.f, 0.01)
    end
    should "respond to summary" do
      assert(@anova.respond_to? :summary)
      assert(@anova.summary.size>0)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
statsample-1.4.1 test/test_anovaoneway.rb
statsample-1.4.0 test/test_anovaoneway.rb
statsample-1.3.1 test/test_anovaoneway.rb
statsample-1.3.0 test/test_anovaoneway.rb
statsample-1.2.0 test/test_anovaoneway.rb
statsample-1.1.0 test/test_anovaoneway.rb
statsample-1.0.1 test/test_anovaoneway.rb
statsample-1.0.0 test/test_anovaoneway.rb
statsample-0.18.0 test/test_anovaoneway.rb
statsample-0.17.0 test/test_anovaoneway.rb
statsample-0.16.0 test/test_anovaoneway.rb