Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c3e221ab25
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.523 kb
-module(command_tests).
-include_lib("eunit/include/eunit.hrl").
-include("command.hrl").
empty_command_test() ->
Command = "",
?assertEqual({error,empty_command},command:parse(Command)).
list_bindings_test() ->
Command = "list bind",
?assertMatch(#binding{type = list},command:parse(Command)).
bind_test() ->
Command = "bind testtype testfile.erl",
?assertMatch(#binding{type = bind,
arguments = [{type,"testtype"},
{file,"testfile.erl"}]},
command:parse(Command)).
Jump to Line
Something went wrong with that request. Please try again.