diff options
| author | UENISHI Kota <kuenishi+github@gmail.com> | 2010-07-09 23:23:00 +0900 |
|---|---|---|
| committer | UENISHI Kota <kuenishi+github@gmail.com> | 2010-07-09 23:23:00 +0900 |
| commit | a4258505a99087df2397cf8d6cfbf194311a995c (patch) | |
| tree | 2000c832fee1b55c161b0623e4c1703eb9a90e3a | |
| parent | ba4a971bfaabe7da2159a634cd07977e06c61e3a (diff) | |
| download | msgpack-python-a4258505a99087df2397cf8d6cfbf194311a995c.tar.gz | |
erlang: modified wrong testcase.
| -rw-r--r-- | erlang/msgpack.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/erlang/msgpack.erl b/erlang/msgpack.erl index ff3eac7..e862cad 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). |
