changeset 32041:b4fbbd9cf601

odeset.m: Remove FIXME notes now that PartialMatching is implemented (bug #49364) * odeset.m: Remove FIXME notes about inexact matching now that inputParser class supports PartialMatching. Adjust BIST tests for new form of error messages from inputParser. Add new test for ambiguous option.
author Rik <rik@octave.org>
date Wed, 19 Apr 2023 18:39:28 -0700
parents ba0596c25479
children ded0fd45bf68
files scripts/ode/odeset.m
diffstat 1 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ode/odeset.m	Wed Apr 19 17:04:14 2023 -0700
+++ b/scripts/ode/odeset.m	Wed Apr 19 18:39:28 2023 -0700
@@ -154,8 +154,6 @@
   persistent p;
 
   if (isempty (p))
-    ## FIXME: Add an inexact match option once it is available in inputParser.
-    ## See bug #49364.
     p = inputParser ();
     p.addParameter ("AbsTol", []);
     p.addParameter ("BDF", []);
@@ -281,13 +279,10 @@
 %! odeopt = odeset ("NewtonTol", 3);
 %! assert (odeopt.NewtonTol, 3);
 
-## FIXME: Add an inexact match option once it is available in inputParser.
-## See bug #49364.
-## %!warning <no exact match for 'Rel'.  Assuming 'RelTol'> odeset ("Rel", 1);
-## %!error <Possible fields found: InitialSlope, InitialStep> odeset ("Initial", 1)
-
 ## Test input validation
-%!error <argument 'opt1' is not a valid parameter> odeset ("opt1")
+%!error <argument 'opt1' is not a declared parameter> odeset ("opt1")
 %!error odeset (1, 1)
-%!error <argument 'opt1' is not a valid parameter> odeset (odeset (), "opt1")
+%!error <argument 'opt1' is not a declared parameter> odeset (odeset (), "opt1")
 %!error odeset (odeset (), 1, 1)
+%error <'Re' matches mor than one Parameter: 'Refine', 'RelTol'>
+%! odeset ('Re', 1);