Mercurial > hg > octave-nkf
comparison scripts/strings/strtrunc.m @ 11473:44032aac5223
Correct failing error() tests due to change in capitalization of previous changeset.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 21:45:12 -0800 |
parents | 1740012184f9 |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11472:1740012184f9 | 11473:44032aac5223 |
---|---|
51 endif | 51 endif |
52 | 52 |
53 endfunction | 53 endfunction |
54 | 54 |
55 %!error <Invalid call to strtrunc> strtrunc (); | 55 %!error <Invalid call to strtrunc> strtrunc (); |
56 %!error <s must be a character string or a cell array of strings> strtrunc (1, 1) | 56 %!error <S must be a character string or a cell array of strings> strtrunc (1, 1) |
57 %!assert (strtrunc("abcdefg", 4), "abcd"); | 57 %!assert (strtrunc("abcdefg", 4), "abcd"); |
58 %!assert (strtrunc("abcdefg", 10), "abcdefg"); | 58 %!assert (strtrunc("abcdefg", 10), "abcdefg"); |
59 %!assert (strtrunc({"abcdef", "fedcba"}, 3), {"abc", "fed"}); | 59 %!assert (strtrunc({"abcdef", "fedcba"}, 3), {"abc", "fed"}); |