annotate test/bug-52851/bug-52851.tst @ 30322:552239d43c18 stable

update bug status Modified files: cellfun.cc, mappers.cc, pt-eval.cc, bug-52851.tst, eval-command.tst, and handle-to-sibling.tst.
author John W. Eaton <jwe@octave.org>
date Tue, 23 Nov 2021 09:51:21 -0500
parents d45d1b4bb919
children 8e4f14837db2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30322
552239d43c18 update bug status
John W. Eaton <jwe@octave.org>
parents: 28698
diff changeset
1 %!test <*52851>
28698
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 %! script1
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 %! assert (r11, 1);
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 %! assert (r21, 2);
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 %! assert (r22, 2);
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6
30322
552239d43c18 update bug status
John W. Eaton <jwe@octave.org>
parents: 28698
diff changeset
7 %!test <*52851>
28698
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 %! script2
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 %! assert (r1, 1);
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 %! assert (r2, 2);
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
30322
552239d43c18 update bug status
John W. Eaton <jwe@octave.org>
parents: 28698
diff changeset
12 %!test <*52851>
28698
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 %! flag = true;
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 %! script3
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 %! assert (r, 1);
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 %! flag = false;
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 %! script3
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 %! assert (r, 2);
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19
30322
552239d43c18 update bug status
John W. Eaton <jwe@octave.org>
parents: 28698
diff changeset
20 %!test <*52851>
28698
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 %! script4
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 %! assert (r1, 1);
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 %! assert (r2, 2);
d45d1b4bb919 allow functions to be redefined in scripts (bug #52851)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24