redict/client-libraries/erlang/test/proto_tests.erl

11 lines
277 B
Erlang
Raw Normal View History

2009-03-22 05:30:00 -04:00
-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"),
2009-05-30 04:17:06 -04:00
{error, "1"} = proto:parse(empty, "-1").