view test/bug-41723/bug-41723.tst @ 23373:67a638ac7f24

Add test case for classdef with local functions (bug #41723) * test/bug-41723/bug-41723.tst, test/bug-41723/class_bug41723.m, test/bug-41723/module.mk: New test files. * test/module.mk: Update to include bug-41723.
author Mike Miller <mtmiller@octave.org>
date Mon, 03 Apr 2017 21:12:07 -0700
parents
children 1b4f4ec53b4a
line wrap: on
line source

## Copyright (C) 2017 Mike Miller
##
## This file is part of Octave.
##
## Octave is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## Octave is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Octave; see the file COPYING.  If not, see
## <http://www.gnu.org/licenses/>.

%!test <41723>
%! a = class_bug41723 ();
%! assert (a.value, 42);
%! assert (a.getval (), 84);