Mercurial > octave
annotate test/bug-35881/bug-35881.tst @ 31706:597f3ee61a48 stable
update Octave Project Developers copyright for the new year
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 06 Jan 2023 13:11:27 -0500 |
parents | 796f54d4ddbf |
children | 2e484f9f1f18 |
rev | line source |
---|---|
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
1 ######################################################################## |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 ## |
31706
597f3ee61a48
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
30564
diff
changeset
|
3 ## Copyright (C) 2017-2023 The Octave Project Developers |
27918
b442ec6dda5c
use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
4 ## |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
5 ## See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
6 ## distribution or <https://octave.org/copyright/>. |
24185
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
7 ## |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
8 ## This file is part of Octave. |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
9 ## |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
24208
diff
changeset
|
10 ## Octave is free software: you can redistribute it and/or modify it |
24185
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
11 ## under the terms of the GNU General Public License as published by |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
24208
diff
changeset
|
12 ## the Free Software Foundation, either version 3 of the License, or |
24185
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
13 ## (at your option) any later version. |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
14 ## |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
15 ## Octave is distributed in the hope that it will be useful, but |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
16 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
18 ## GNU General Public License for more details. |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
19 ## |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
20 ## You should have received a copy of the GNU General Public License |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
21 ## along with Octave; see the file COPYING. If not, see |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
24208
diff
changeset
|
22 ## <https://www.gnu.org/licenses/>. |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
23 ## |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
24 ######################################################################## |
24185
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
25 |
30110
9080316864bf
update bug status in test suite
John W. Eaton <jwe@octave.org>
parents:
30109
diff
changeset
|
26 %!test <*35881> |
24185
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
27 %! global _tstvar_; # Final test does "clear all" which removes this var. |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
28 %! |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
29 %! _tstvar_ = struct ("init1",-1, "a1",-1, "init2",-1, "a2",-1); |
24208
eec262017c6a
maint: Strip trailing whitespace from source files.
John W. Eaton <jwe@octave.org>
parents:
24185
diff
changeset
|
30 %! bug35881 (0); |
24185
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
31 %! assert (_tstvar_, struct ("init1",true, "a1",1, "init2",false, "a2",1)); |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
32 %! clear -f bug35881 |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
33 %! |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
34 %! _tstvar_ = struct ("init1",-1, "a1",-1, "init2",-1, "a2",-1); |
24208
eec262017c6a
maint: Strip trailing whitespace from source files.
John W. Eaton <jwe@octave.org>
parents:
24185
diff
changeset
|
35 %! bug35881 (1); |
24185
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
36 %! assert (_tstvar_, struct ("init1",true, "a1",1, "init2",false, "a2",1)); |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
37 %! |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
38 %! _tstvar_ = struct ("init1",-1, "a1",-1, "init2",-1, "a2",-1); |
068556c5167e
Add BIST test for clear() function (bug #35881).
Rik <rik@octave.org>
parents:
diff
changeset
|
39 %! fail ("bug35881 (2)", "'a' undefined near line"); |