Sha256: 283962917ea3077cac34648a02a2e21e9c915c3cdd990d8d473ce612826382dc

Contents?: true

Size: 998 Bytes

Versions: 32

Compression:

Stored size: 998 Bytes

Contents

# frozen_string_literal: true
#
# Ubuntu does not accept arguments to ruby when called using env. To get warnings to show up the -w options is
# required. That can be set in the RUBYOPT environment variable.
# export RUBYOPT=-w

$VERBOSE = true

%w(lib ext test).each do |dir|
  $LOAD_PATH.unshift File.expand_path("../../#{dir}", __FILE__)
end

require 'minitest'
require 'minitest/autorun'
require 'stringio'
require 'date'
require 'bigdecimal'
require 'pp'
require 'oj'


if defined?(GC.verify_compaction_references) == 'method'
  # This method was added in Ruby 3.0.0. Calling it this way asks the GC to
  # move objects around, helping to find object movement bugs.
  GC.verify_compaction_references(double_heap: true, toward: :empty)
end


$ruby = RUBY_DESCRIPTION.split(' ')[0]
$ruby = 'ree' if 'ruby' == $ruby && RUBY_DESCRIPTION.include?('Ruby Enterprise Edition')

class Range
  def to_hash()
    { 'begin' => self.begin, 'end' => self.end, 'exclude_end' => self.exclude_end? }
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/oj-3.13.2/test/helper.rb
oj-3.13.18 test/helper.rb
oj-3.13.17 test/helper.rb
oj-3.13.16 test/helper.rb
oj-3.13.15 test/helper.rb
oj-3.13.14 test/helper.rb
oj-3.13.13 test/helper.rb
oj-3.13.12 test/helper.rb
oj-3.13.11 test/helper.rb
oj-3.13.10 test/helper.rb
oj-3.13.9 test/helper.rb
oj-3.13.8 test/helper.rb
oj-3.13.7 test/helper.rb
oj-3.13.6 test/helper.rb
oj-3.13.5 test/helper.rb
oj-3.13.4 test/helper.rb
oj-3.13.3 test/helper.rb
oj-3.13.2 test/helper.rb
oj-3.13.1 test/helper.rb
oj-3.13.0 test/helper.rb