MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / test_json

Method test_json

src/cli/test/test_embedded_ruby.rb:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 end
88
89 def test_json
90 require 'json'
91 my_hash = JSON.parse('{"hello": "goodbye"}')
92 JSON.generate(my_hash)
93 assert_equal(JSON.parser, JSON::Ext::Parser)
94 assert_equal(JSON.generator, JSON::Ext::Generator)
95 assert_equal("2.6.3", JSON::VERSION)
96 end
97
98 def test_md5
99 require 'digest'

Callers

nothing calls this directly

Calls 4

generateMethod · 0.80
parseMethod · 0.45
parserMethod · 0.45
generatorMethod · 0.45

Tested by

no test coverage detected