Sha256: 68ef4ae61712d1f02b416fadf803acbaae85a98473d51f595c60f91be9c8ced7

Contents?: true

Size: 525 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
oj-3.16.9 test/test_parser_debug.rb
oj-3.16.8 test/test_parser_debug.rb
oj-3.16.7 test/test_parser_debug.rb
oj-3.16.6 test/test_parser_debug.rb
oj-3.16.5 test/test_parser_debug.rb
oj-3.16.4 test/test_parser_debug.rb
oj-3.16.3 test/test_parser_debug.rb
oj-3.16.0 test/test_parser_debug.rb