blob: 0ecb5b2ee50e18cdb4c4dbe21f49a5f7f87461ae [file]
require_relative "../test_helper"
require "json"
class JSONKernelInstanceTest < Test::Unit::TestCase
include TestHelper
library "json"
testing "::Kernel"
def test_JSON
assert_send_type("(String) -> Hash[String, Integer]", self, :JSON, '{"a": 1}')
assert_send_type("(Array[Integer]) -> String", self, :JSON, [1, 2, 3])
end
end