Sha256: 55726530f09c2e12b1c88f71b346c607ac1b58407d2c3781d91b316b04ca4182
Contents?: true
Size: 335 Bytes
Versions: 3
Compression:
Stored size: 335 Bytes
Contents
require_relative "../test_helper" class TestMessagePackCoreExt < Test::Unit::TestCase def test_to_msgpack [nil, true, false, 10, 123456789 ** 2, 1.0, "foo", [:foo, :bar], {:a => :b}, :a, Time.now, /foo/, Date.new, DateTime.new].each do |data| assert_equal MessagePack.pack(data.as_json), data.to_msgpack end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msgpack_rails-0.3.0 | test/msgpack_rails/core_ext_test.rb |
msgpack_rails-0.1.0 | test/msgpack_rails/core_ext_test.rb |
msgpack_rails-0.0.1 | test/msgpack/core_ext_test.rb |