Current section

Files

Jump to
yamerl testsuite data parsing option_doc_version_invalid.pattern
Raw

testsuite/data/parsing/option_doc_version_invalid.pattern

%% vim:ft=erlang:
%% TEST
?_assertThrow(
{yamerl_exception,
[
{yamerl_invalid_option,error,
"Invalid value for option \"doc_version\": it must be a tuple of the form {Major, Minor} where Major and Minor are positive integers",
{doc_version,invalid}}
]
},
yamerl_parser:file("${FILENAME}", [{doc_version, invalid}])
)