1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/json/test_helper.rb
2020-07-03 11:05:08 +09:00

17 lines
362 B
Ruby

case ENV['JSON']
when 'pure'
$:.unshift File.join(__dir__, '../lib')
require 'json/pure'
when 'ext'
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
require 'json/ext'
else
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
require 'json'
end
require 'test/unit'
begin
require 'byebug'
rescue LoadError
end