comparison scripts/general/inputParser.m @ 21505:7f7d7cb73e0d

inputParser.m: uncomment failing test and use %!xtest instead.
author Carnë Draug <carandraug@octave.org>
date Sat, 19 Mar 2016 18:05:44 +0000
parents 6cc091426e52
children 04923b7b0d89
comparison
equal deleted inserted replaced
21504:65d1daa7d7a7 21505:7f7d7cb73e0d
588 %! p.addParamValue ("positive", -1, @(x) x > 5); 588 %! p.addParamValue ("positive", -1, @(x) x > 5);
589 %! p.parse (); 589 %! p.parse ();
590 %! assert (p.Results.positive, -1) 590 %! assert (p.Results.positive, -1)
591 591
592 ## FIXME: This somehow works in Matlab 592 ## FIXME: This somehow works in Matlab
593 #%!test 593 %!xtest
594 #%! p = inputParser; 594 %! p = inputParser;
595 #%! p.addOptional ("op1", "val"); 595 %! p.addOptional ("op1", "val");
596 #%! p.addParamValue ("line", "tree"); 596 %! p.addParamValue ("line", "tree");
597 #%! p.parse ("line", "circle"); 597 %! p.parse ("line", "circle");
598 #%! assert (p.Results, struct ("op1", "val", "line", "circle")); 598 %! assert (p.Results, struct ("op1", "val", "line", "circle"));