Mercurial > octave
comparison scripts/strings/strrep.m @ 7411:83a8781b529d
[project @ 2008-01-22 21:52:25 by jwe]
author | jwe |
---|---|
date | Tue, 22 Jan 2008 21:52:26 +0000 |
parents | a1dbe9d80eee |
children | 99b6066fccb6 |
comparison
equal
deleted
inserted
replaced
7410:8a3b2ccc4e11 | 7411:83a8781b529d |
---|---|
86 t(delete) = []; | 86 t(delete) = []; |
87 t = char (t); | 87 t = char (t); |
88 endif | 88 endif |
89 | 89 |
90 endfunction | 90 endfunction |
91 | |
92 %!assert(strcmp (strrep ("This is a test string", "is", "&%$"), | |
93 %! "Th&%$ &%$ a test string")); | |
94 | |
95 %!error strrep (); | |
96 | |
97 %!error strrep ("foo", "bar", 3, 4); | |
98 |