-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
anonymous-function.tst: New file for anonymous function BIST tests.
* test/anonymous-function.tst: Add BIST test for bug #64783. * test/Makefile.am: Add anonymous-function.tst to build system.
- Loading branch information
Rik
committed
Feb 1, 2024
1 parent
31fa27b
commit 7d588a5
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
######################################################################## | ||
## | ||
## Copyright (C) 2024 The Octave Project Developers | ||
## | ||
## See the file COPYRIGHT.md in the top-level directory of this | ||
## distribution or <https://octave.org/copyright/>. | ||
## | ||
## 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 | ||
## <https://www.gnu.org/licenses/>. | ||
## | ||
######################################################################## | ||
|
||
%!test <*64783> | ||
%! s = struct ('re',{pi,2}, 'im',{3,4}); | ||
%! f = @(x) x.re ; | ||
%! f(s); | ||
%! assert (ans, pi); |