view test/class-concat/test_class_concat.m @ 13814:a45535d630bd

new tests for class concatentation * test/class-concat/@foo/foo.m, test/class-concat/module.mk, test/class-concat/test_class_concat.m: New files. * test/Makefile.am: Include class-concat/modules.mk.
author John W. Eaton <jwe@octave.org>
date Fri, 04 Nov 2011 05:10:46 -0400
parents
children
line wrap: on
line source

%!test
%! f = foo ();
%! x = [f,f];
%! assert (size (x), [1, 2])
%! assert (class (x), "foo")

%!test
%! f = foo ();
%! x = [f,f];
%! tmp = num2cell (x);
%! assert (iscell (tmp))
%! assert (size (tmp), [1, 2])
%! assert (class (tmp{1}), "foo")
%! assert (class (tmp{2}), "foo")