mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
11 lines
283 B
Erlang
11 lines
283 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, no_such_key} = proto:parse(empty, "-1").
|