annotate test/bug-44940/bug-44940.tst @ 23083:e9a0469dedd9 stable

maint: strip extra trailing newlines from files.
author John W. Eaton <jwe@octave.org>
date Fri, 20 Jan 2017 12:19:08 -0500
parents ecce63c99c3f
children ef4d915df748
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20190
38487298513b Add tests for indexing classdef object with empty "()" (bug #44940).
Carnë Draug <carandraug@octave.org>
parents:
diff changeset
1 %!test
38487298513b Add tests for indexing classdef object with empty "()" (bug #44940).
Carnë Draug <carandraug@octave.org>
parents:
diff changeset
2 %! a = class_bug44940 ();
38487298513b Add tests for indexing classdef object with empty "()" (bug #44940).
Carnë Draug <carandraug@octave.org>
parents:
diff changeset
3 %! b = a;
38487298513b Add tests for indexing classdef object with empty "()" (bug #44940).
Carnë Draug <carandraug@octave.org>
parents:
diff changeset
4 %! c = a ();
38487298513b Add tests for indexing classdef object with empty "()" (bug #44940).
Carnë Draug <carandraug@octave.org>
parents:
diff changeset
5 %! a.child = 100;
21580
ecce63c99c3f maint: Add semicolons to terminate code in %! blocks.
Rik <rik@octave.org>
parents: 20190
diff changeset
6 %! assert (a.child, b.child);
ecce63c99c3f maint: Add semicolons to terminate code in %! blocks.
Rik <rik@octave.org>
parents: 20190
diff changeset
7 %! assert (a.child, c.child);
20190
38487298513b Add tests for indexing classdef object with empty "()" (bug #44940).
Carnë Draug <carandraug@octave.org>
parents:
diff changeset
8 %! c.child = 500;
21580
ecce63c99c3f maint: Add semicolons to terminate code in %! blocks.
Rik <rik@octave.org>
parents: 20190
diff changeset
9 %! assert (a.child, b.child);
ecce63c99c3f maint: Add semicolons to terminate code in %! blocks.
Rik <rik@octave.org>
parents: 20190
diff changeset
10 %! assert (a.child, c.child);