Sha256: c43b596458de62c3ceb333f9af54100832ce5927192ee37665cb43f7409fa48c

Contents?: true

Size: 525 Bytes

Versions: 4

Compression:

Stored size: 525 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH << __dir__
@oj_dir = File.dirname(File.expand_path(__dir__))
%w(lib ext).each do |dir|
  $LOAD_PATH << File.join(@oj_dir, dir)
end

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

class ParserJuice < Minitest::Test

  def test_array
    p = Oj::Parser.new(:debug)
    out = p.parse(%|[true, false, null, 123, -1.23, "abc"]|)
    puts out
    out = p.parse(%|{"abc": []}|)
    puts out
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oj-3.16.2 test/test_parser_debug.rb
oj-3.16.1 test/test_parser_debug.rb
oj-3.15.1 test/test_parser_debug.rb
oj-3.15.0 test/test_parser_debug.rb