11 lines
277 B
Erlang
Raw Normal View History

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