comparison scripts/help/which.m @ 30260:bfbe6e528af5

which: report correct info for classdef constructors (bug #49434) * help.cc (help_system::which): Handle octave_classdef_meta objects. * which.m: Fix test.
author John W. Eaton <jwe@octave.org>
date Sat, 30 Oct 2021 09:47:47 -0400
parents 7854d5752dd2
children 49c8538c64c4
comparison
equal deleted inserted replaced
30259:03ff3f1020cf 30260:bfbe6e528af5
91 %! str = which ("ls"); 91 %! str = which ("ls");
92 %! assert (str(end-17:end), fullfile ("miscellaneous", "ls.m")); 92 %! assert (str(end-17:end), fullfile ("miscellaneous", "ls.m"));
93 %!test 93 %!test
94 %! str = which ("fftw"); 94 %! str = which ("fftw");
95 %! assert (str(end-7:end), "fftw.oct"); 95 %! assert (str(end-7:end), "fftw.oct");
96 %!test 96 %!assert <49434> (which ("inputParser"), file_in_loadpath ("inputParser.m"));
97 %! str = which ("inputParser");
98 %! assert (str, "built-in function");
99 %!test 97 %!test
100 %! x = 3; 98 %! x = 3;
101 %! str = which ("x"); 99 %! str = which ("x");
102 %! assert (str, "variable"); 100 %! assert (str, "variable");
103 101