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"),
|
2009-03-25 16:49:27 +01:00
|
|
|
false = proto:parse(empty, ":0"),
|
|
|
|
true = proto:parse(empty, ":1"),
|
2009-03-22 10:30:00 +01:00
|
|
|
{error, no_such_key} = proto:parse(empty, "-1").
|