Mercurial > hg > octave-max
comparison test/test_null_assign.m @ 12004:ff8c445edeb4 release-3-2-x
fix null assign test
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 22 Jun 2009 07:56:24 +0200 |
parents | 2bc8ec18b2ea |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
12003:10fb62b82108 | 12004:ff8c445edeb4 |
---|---|
55 %!test | 55 %!test |
56 %! a = ones (3); fail ("a(:,1:3) = double ([])") | 56 %! a = ones (3); fail ("a(:,1:3) = double ([])") |
57 | 57 |
58 % subsasgn should work the same way | 58 % subsasgn should work the same way |
59 %!test | 59 %!test |
60 %! a = ones (3); subsasgn (a, substruct ('()', {':',1:2}), []); assert (size (a), [3,1]) | 60 %! a = ones (3); a = subsasgn (a, substruct ('()', {':',1:2}), []); assert (size (a), [3,1]) |
61 %!test | 61 %!test |
62 %! a = ones (3); b = []; fail ("subsasgn (a, substruct ('()', {':',1:2}), b)", ".") | 62 %! a = ones (3); b = []; fail ("subsasgn (a, substruct ('()', {':',1:2}), b)", ".") |
63 | 63 |