Sha256: 3d389eabcb1b5db6b6e59615ab810f00e6054549910ef6aaf4385f4b0d6a43d5

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

require 'test/unit'
require File.expand_path(File.join(File.dirname(__FILE__), 'test_unit', 'assertions'))
#require './test_unit/assertions'  # Monkey patch
require 'rbconfig'

ENV['PATH'] = [
  File.expand_path(File.join(File.dirname(__FILE__), "..", "ext")),
  ENV['PATH']
].compact.join(';') if RbConfig::CONFIG['host_os'] =~ /(mswin|mingw|mingw32)/i

require File.dirname(__FILE__) + '/../lib/gmp'

if GMP.const_defined?(:MPFR_VERSION)
  if GMP::MPFR_VERSION >= "3.0.0"
    RND_MODES = [GMP::MPFR_RNDN, GMP::MPFR_RNDZ, GMP::MPFR_RNDU, GMP::MPFR_RNDD, GMP::MPFR_RNDA]
  else
    RND_MODES = [GMP::GMP_RNDN, GMP::GMP_RNDZ, GMP::GMP_RNDU, GMP::GMP_RNDD]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gmp-0.7.19 test/test_helper.rb
gmp-0.6.47 test/test_helper.rb