Mercurial > octave
changeset 20190:38487298513b
Add tests for indexing classdef object with empty "()" (bug #44940).
* test/Makefile.am: Add bug-44940/module.mk to build system.
* test/bug-44940/module.mk: Include two files below in build system.
* test/bug-44940/bug-44940.tst: New test file.
* test/bug-44940/class_bug44940.m: New classdef file used for test in
bug-44940.tst.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Wed, 06 May 2015 18:06:19 +0100 |
parents | b2532deba721 |
children | 64f817945783 |
files | test/Makefile.am test/bug-44940/bug-44940.tst test/bug-44940/class_bug44940.m test/bug-44940/module.mk |
diffstat | 4 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/Makefile.am Thu May 14 08:00:53 2015 -0700 +++ b/test/Makefile.am Wed May 06 18:06:19 2015 +0100 @@ -58,6 +58,7 @@ include bug-36025/module.mk include bug-38236/module.mk include bug-38691/module.mk +include bug-44940/module.mk include classdef/module.mk include classes/module.mk include class-concat/module.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bug-44940/bug-44940.tst Wed May 06 18:06:19 2015 +0100 @@ -0,0 +1,11 @@ +%!test +%! a = class_bug44940 (); +%! b = a; +%! c = a (); +%! a.child = 100; +%! assert (a.child, b.child) +%! assert (a.child, c.child) +%! c.child = 500; +%! assert (a.child, b.child) +%! assert (a.child, c.child) +