Mercurial > hg > octave-nkf
comparison scripts/general/shift.m @ 13296:27da11c63d98
shift.m: Add validation tests for dimension argument
* shift.m: Add validation tests for dimension argument
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Fri, 07 Oct 2011 20:24:33 -0700 |
parents | 10eba5cdb5d4 |
children | 72c96de7a403 |
comparison
equal
deleted
inserted
replaced
13295:96c7143304d9 | 13296:27da11c63d98 |
---|---|
91 %!error shift () | 91 %!error shift () |
92 %!error shift (1, 2, 3, 4) | 92 %!error shift (1, 2, 3, 4) |
93 %!error shift ([], 1) | 93 %!error shift ([], 1) |
94 %!error shift (ones(2), ones(2)) | 94 %!error shift (ones(2), ones(2)) |
95 %!error shift (ones(2), 1.5) | 95 %!error shift (ones(2), 1.5) |
96 %!error shift (1, 1, 1.5) | |
97 %!error shift (1, 1, 0) | |
98 %!error shift (1, 1, 3) | |
96 | 99 |