Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
7096-Fix-typo-faildation-validation.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7096-Fix-typo-faildation-validation.patch of Package erlang
From 4bd2019aa0ed8457be447468c2b60790e86ab202 Mon Sep 17 00:00:00 2001 From: Roger Lipscombe <roger@differentpla.net> Date: Fri, 26 Jan 2024 12:12:14 +0000 Subject: [PATCH] Fix typo: faildation/validation --- lib/stdlib/src/argparse.erl | 2 +- lib/stdlib/test/argparse_SUITE.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stdlib/src/argparse.erl b/lib/stdlib/src/argparse.erl index 8240f784dd..d04b323130 100644 --- a/lib/stdlib/src/argparse.erl +++ b/lib/stdlib/src/argparse.erl @@ -763,7 +763,7 @@ convert_type({atom, Choices}, Arg, Opt, Eos) -> convert_type({custom, Fun}, Arg, Opt, Eos) -> try Fun(Arg) catch error:badarg -> - throw({Eos#eos.commands, Opt, Arg, <<"failed faildation">>}) + throw({Eos#eos.commands, Opt, Arg, <<"failed validation">>}) end. %% Given Var, and list of {min, X}, {max, Y}, ensure that diff --git a/lib/stdlib/test/argparse_SUITE.erl b/lib/stdlib/test/argparse_SUITE.erl index f25b3cc5d7..a4a6b21a5e 100644 --- a/lib/stdlib/test/argparse_SUITE.erl +++ b/lib/stdlib/test/argparse_SUITE.erl @@ -365,7 +365,7 @@ invalid_arguments(Config) when is_list(Config) -> ?assertEqual({error, {Prog, FloatChoices, "1.3", <<"is not one of the choices">>}}, parse_opts("1.3", [FloatChoices])), %% unsuccessful user-defined conversion - ?assertMatch({error, {Prog, _, "REV", <<"failed faildation">>}}, + ?assertMatch({error, {Prog, _, "REV", <<"failed validation">>}}, parse_opts("REV", [#{name => user, type => {custom, fun (Str) -> integer_to_binary(Str) end}}])). complex_command() -> -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor