Sha256: fe994b4f44e33280fe78a4fa7752fab220063da2956b4a3423218cb8b67033bc

Contents?: true

Size: 216 Bytes

Versions: 3

Compression:

Stored size: 216 Bytes

Contents

require "standard_deviation"
require "bigdecimal"

RSpec::Matchers.define :be_close_to do |expected|
  match do |actual|
    BigDecimal.new(actual.to_s).round(10) == BigDecimal.new(expected.to_s).round(10)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
standard_deviation-1.0.3 spec/spec_helper.rb
standard_deviation-1.0.2 spec/spec_helper.rb
standard_deviation-1.0.1 spec/spec_helper.rb