From a4258505a99087df2397cf8d6cfbf194311a995c Mon Sep 17 00:00:00 2001 From: UENISHI Kota Date: Fri, 9 Jul 2010 23:23:00 +0900 Subject: [PATCH] erlang: modified wrong testcase. --- erlang/msgpack.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erlang/msgpack.erl b/erlang/msgpack.erl index ff3eac74..e862cad1 100644 --- a/erlang/msgpack.erl +++ b/erlang/msgpack.erl @@ -282,10 +282,11 @@ basic_test()-> port_test()-> Port = open_port({spawn, "ruby ../test/crosslang.rb"}, [binary]), Tests = test_data(), - {[Tests],<<>>} = msgpack:unpack(msgpack:pack([Tests])), - true = port_command(Port, msgpack:pack(Tests) ), + S=msgpack:pack([Tests]), + true = port_command(Port, S), + {[Tests],<<>>} = msgpack:unpack(S), receive - {Port, {data, Data}}-> {Tests, <<>>}=msgpack:unpack(Data) + {Port, {data, Data}}-> {[Tests], <<>>}=msgpack:unpack(Data) after 1024-> ?assert(false) end, port_close(Port).