Sha256: 81a4b7b286e407d93a28a169bae0054739f7c447587f9fdbe67cce70b728536d

Contents?: true

Size: 430 Bytes

Versions: 12

Compression:

Stored size: 430 Bytes

Contents

require_relative 'test_helper'
require 'genevalidator/ext/array'
require 'minitest/autorun'

module GeneValidator
  # Test the Enumerable extension class
  class TestArray < Minitest::Test
    describe 'Array Class' do
      it 'test1' do
        v = [1, 2, 3, 4, 5, 6]
        assert_equal(3.5, v.mean)
        assert_equal(3.5, v.median)
        assert_equal(1.870829, v.standard_deviation.round(6))
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
genevalidator-2.1.5 test/test_extended_array_methods.rb
genevalidator-2.1.4 test/test_extended_array_methods.rb
genevalidator-2.1.3 test/test_extended_array_methods.rb
genevalidator-1.6.12 test/test_extended_array_methods.rb
genevalidator-1.6.11 test/test_extended_array_methods.rb
genevalidator-1.6.10 test/test_extended_array_methods.rb
genevalidator-1.6.9 test/test_extended_array_methods.rb
genevalidator-1.6.8 test/test_extended_array_methods.rb
genevalidator-1.6.6 test/test_extended_array_methods.rb
genevalidator-1.6.5 test/test_extended_array_methods.rb
genevalidator-1.6.4 test/test_extended_array_methods.rb
genevalidator-1.6.3 test/test_extended_array_methods.rb