Mercurial > octave
annotate test/bug-50716/bug-50716.tst @ 26946:04e5cb5e2cb3
update bug status in tests
* __ichol__.cc, file-io.cc, mappers.cc, oct-map.cc, syscalls.cc,
asech.m, quadgk.m, deconv.m, poly.m, betainc.m, expint.m, gammainc.m,
perms.m, native2unicode.m, bug-38236.tst, bug-47680.tst,
bug-50716.tst, classdef.tst, classes.tst, for.tst, nest.tst,
struct.tst: Update status of fixed bugs in tests.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 20 Mar 2019 02:27:30 +0000 |
parents | 00f796120a6d |
children | b442ec6dda5c |
rev | line source |
---|---|
26376
00f796120a6d
maint: Update copyright dates in all source files.
John W. Eaton <jwe@octave.org>
parents:
25054
diff
changeset
|
1 ## Copyright (C) 2017-2019 John W. Eaton |
23346
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 ## |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 ## This file is part of Octave. |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 ## |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
23346
diff
changeset
|
5 ## Octave is free software: you can redistribute it and/or modify it |
23346
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 ## 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:
23346
diff
changeset
|
7 ## the Free Software Foundation, either version 3 of the License, or |
23346
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 ## (at your option) any later version. |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 ## |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 ## Octave is distributed in the hope that it will be useful, but |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 ## GNU General Public License for more details. |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 ## |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 ## You should have received a copy of the GNU General Public License |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 ## 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:
23346
diff
changeset
|
17 ## <https://www.gnu.org/licenses/>. |
23346
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 %!test |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 %! obj = myclass (); |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 %! str = "Octave"; |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 %! val = obj.methodA (str(1:end)); |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 %! assert (val, str); |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 |
26946
04e5cb5e2cb3
update bug status in tests
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
25 %!test <*50716> |
23346
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 %! obj = myclass (); |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 %! foo = {obj}; |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 %! str = "Octave"; |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 %! val = foo{1}.methodA (str(1:end)); |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 %! assert (val, str); |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 |
26946
04e5cb5e2cb3
update bug status in tests
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
32 %!test <*50716> |
23346
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 %! obj = myclass (); |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 %! foo = {obj}; |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 %! str = "Octave"; |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 %! val = foo{end}.methodA (str(1:end)); |
957d95286f52
avoid indexing error with "end" and classdef objects (bug #50716)
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 %! assert (val, str); |