Sha256: 30740262299b67080a60879747e4344a74ff5de8424d7bf51cc4f5066f5f2aa0

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

require_relative 'test_helper'
require 'genevalidator/ext/array'
require 'minitest/autorun'
module GeneValidator
  # Test the Enumerable extension class
  class TestEnumerable < 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

1 entries across 1 versions & 1 rubygems

Version Path
genevalidator-1.6.2 test/test_extended_array_methods.rb