Skip to content

Commit

Permalink
MSGPACK-8 ruby: added test cases of previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
frsyuki committed Apr 14, 2011
1 parent 7552120 commit 22cd112
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ruby/test/msgpack_rpc_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,13 @@ def test_timeout
cli.close
lsock.close
end

def test_address
addr = MessagePack::RPC::Address.new('172.16.0.11', 18900)
raw = addr.to_msgpack
msg = MessagePack.unpack(raw)
addr2 = MessagePack::RPC::Address.load(msg)
assert_equal(addr, addr2)
end
end

0 comments on commit 22cd112

Please sign in to comment.