Codebase list erlang-getopt / fresh-snapshots/main
New upstream snapshot. Debian Janitor 1 year, 11 months ago
2 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 erlang-getopt (1.0.2+git20210215.1.838e67f-1) UNRELEASED; urgency=low
1
2 * New upstream snapshot.
3
4 -- Debian Janitor <janitor@jelmer.uk> Fri, 15 Apr 2022 01:00:01 -0000
5
06 erlang-getopt (1.0.2-1) unstable; urgency=medium
17
28 * New upstream release.
356356 Utf8 = unicode:characters_to_binary(Unicode),
357357 io:setopts(standard_error, [{encoding, utf8}]),
358358 OptSpecsWithDefault = [{utf8, undefined, "utf8", {utf8_binary, Utf8}, "UTF-8 arg"}],
359 UsageBin = unicode:characters_to_binary(getopt:usage_options(OptSpecsWithDefault)),
359360 [{"Empty utf8_binary argument",
360361 ?_assertEqual({ok, {[{utf8, <<>>}], []}}, parse(OptSpecList, ["--utf8", ""]))},
361362 {"Non empty utf8_binary argument",
363364 {"Default utf8_binary argument",
364365 ?_assertEqual({ok, {[{utf8, Utf8}], []}}, parse(OptSpecsWithDefault, []))},
365366 {"Default utf8_binary argument usage",
366 ?_assert(is_list(string:find(getopt:usage_options(OptSpecsWithDefault), Unicode)))}].
367 ?_assertEqual(1, length(binary:matches(UsageBin, Utf8)))}].