Sha256: 821f9e3f6d5dd3290819b1d25d42711677f8a8dc5e80f21d5f0847ba60aab37b

Contents?: true

Size: 435 Bytes

Versions: 8

Compression:

Stored size: 435 Bytes

Contents

require 'spec_helper'
require 'split/dashboard/helpers'

include Split::DashboardHelpers

describe Split::DashboardHelpers do
  describe 'confidence_level' do
    it 'should handle very small numbers' do
      confidence_level(Complex(2e-18, -0.03)).should eql('No Change')
    end

    it "should consider a z-score of 1.645 < z < 1.96 as 95% confident" do
      confidence_level(1.80).should eql('95% confidence')
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
split-0.6.6 spec/dashboard_helpers_spec.rb
split-0.6.5 spec/dashboard_helpers_spec.rb
split-0.6.4 spec/dashboard_helpers_spec.rb
split-0.6.3 spec/dashboard_helpers_spec.rb
split-0.6.2 spec/dashboard_helpers_spec.rb
split-0.6.1 spec/dashboard_helpers_spec.rb
split-0.6.0 spec/dashboard_helpers_spec.rb
split-0.5.0 spec/dashboard_helpers_spec.rb