Current section

Files

Jump to
yamerl testsuite data parsing option_doc_version_too_high.pattern
Raw

testsuite/data/parsing/option_doc_version_too_high.pattern

%% vim:ft=erlang:
%% TEST
?_assertThrow(
{yamerl_exception,
[
{yamerl_parsing_error,error,
"Version 2.0 not supported (maximum version 1.2)",
1,1,version_not_supported,
{yamerl_doc_start,1,1,{2,0},_},
[]}
]
},
yamerl_parser:file("${FILENAME}", [{doc_version, {2,0}}])
)