Mercurial > hg > octave-lyh
changeset 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 | 8a40037533e2 |
files | scripts/ChangeLog scripts/plot/orient.m scripts/statistics/tests/kolmogorov_smirnov_test.m scripts/strings/strtrunc.m |
diffstat | 4 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2011-01-09 Rik <octave@nomad.inbox5.com> + + * plot/orient.m, statistics/tests/kolmogorov_smirnov_test.m, + strings/strtrunc.m: Correct failing tests due to change in + capitalization of error strings from previous changeset. + 2011-01-09 Rik <octave@nomad.inbox5.com> * audio/lin2mu.m, audio/loadaudio.m, audio/mu2lin.m, audio/saveaudio.m,
--- a/scripts/plot/orient.m +++ b/scripts/plot/orient.m @@ -100,7 +100,7 @@ %! assert (orient, "portrait") %! assert (get (hfig, "papersize"), papersize) %! assert (get (hfig, "paperposition"), tallpaperposition) -%!fail ("orient ('nobody')", "unknown orientation") +%!fail ("orient ('nobody')", "unknown ORIENTATION") %!test %! orient portrait # errors don't change the state %! assert (orient, "portrait")
--- a/scripts/statistics/tests/kolmogorov_smirnov_test.m +++ b/scripts/statistics/tests/kolmogorov_smirnov_test.m @@ -113,7 +113,7 @@ %!error <Invalid call to kolmogorov_smirnov_test> %! kolmogorov_smirnov_test (1); -%!error <kolmogorov_smirnov_test: x must be a vector> +%!error <kolmogorov_smirnov_test: X must be a vector> %! kolmogorov_smirnov_test ({}, "unif", 2, 4); %!error <kolmogorov_smirnov_test: no not_a_distcdf or not_a_dist_cdf function found> %! kolmogorov_smirnov_test (1, "not_a_dist");
--- a/scripts/strings/strtrunc.m +++ b/scripts/strings/strtrunc.m @@ -53,7 +53,7 @@ endfunction %!error <Invalid call to strtrunc> strtrunc (); -%!error <s must be a character string or a cell array of strings> strtrunc (1, 1) +%!error <S must be a character string or a cell array of strings> strtrunc (1, 1) %!assert (strtrunc("abcdefg", 4), "abcd"); %!assert (strtrunc("abcdefg", 10), "abcdefg"); %!assert (strtrunc({"abcdef", "fedcba"}, 3), {"abc", "fed"});