%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/rs/ruby/default/lib/ruby/gems/2.5/gems/json-2.2.0/tests/
Upload File :
Create Path :
Current File : //home/rs/ruby/default/lib/ruby/gems/2.5/gems/json-2.2.0/tests/json_ext_parser_test.rb

#frozen_string_literal: false
require 'test_helper'

class JSONExtParserTest < Test::Unit::TestCase
  if defined?(JSON::Ext::Parser)
    def test_allocate
      parser = JSON::Ext::Parser.new("{}")
      assert_raise(TypeError, '[ruby-core:35079]') do
        parser.__send__(:initialize, "{}")
      end
      parser = JSON::Ext::Parser.allocate
      assert_raise(TypeError, '[ruby-core:35079]') { parser.source }
    end
  end
end

Zerion Mini Shell 1.0