redict/client-libraries/erlang/test/proto_tests.erl
2009-05-30 10:17:06 +02:00

11 lines
277 B
Erlang

-module(proto_tests).
-include_lib("eunit/include/eunit.hrl").
parse_test() ->
ok = proto:parse(empty, "+OK"),
pong = proto:parse(empty, "+PONG"),
false = proto:parse(empty, ":0"),
true = proto:parse(empty, ":1"),
{error, "1"} = proto:parse(empty, "-1").