add tests for stricter parsing of opts

This commit is contained in:
alisdair sullivan 2013-02-04 23:15:50 -08:00
parent 231a55c7e1
commit 81f0321e32
2 changed files with 6 additions and 2 deletions

View file

@ -108,7 +108,9 @@ opts_test_() ->
{"repeated keys false", ?_assertEqual(
#opts{repeated_keys=false},
parse_opts([{repeated_keys, false}])
)}
)},
{"invalid opt flag", ?_assertError(badarg, parse_opts([error]))},
{"invalid opt tuple", ?_assertError(badarg, parse_opts([{error, true}]))}
].