# HG changeset patch # User Thorsten Meyer # Date 1264884719 -3600 # Node ID f63ee6a20f57ce5b32a0d91f1bbce0ed8b11471f # Parent 0a5a769b8fc0f1adead54c2324c43ff1a2b5d578 Replace removed functions in tests diff -r 0a5a769b8fc0 -r f63ee6a20f57 scripts/ChangeLog --- a/scripts/ChangeLog Sat Jan 30 19:28:25 2010 +0100 +++ b/scripts/ChangeLog Sat Jan 30 21:51:59 2010 +0100 @@ -1,3 +1,8 @@ +2010-01-30 Thorsten Meyer + + * statistics/tests/kruskal_wallis_test.m: Replace chisquare_cdf + by chi2cdf. + 2010-01-29 Ben Abbott * plot/axis.m, plot/__go_draw_axes__.m, plot/colorbar.m, diff -r 0a5a769b8fc0 -r f63ee6a20f57 scripts/statistics/tests/kruskal_wallis_test.m --- a/scripts/statistics/tests/kruskal_wallis_test.m Sat Jan 30 19:28:25 2010 +0100 +++ b/scripts/statistics/tests/kruskal_wallis_test.m Sat Jan 30 21:51:59 2010 +0100 @@ -87,7 +87,7 @@ k = k / (1 - sum_ties / (n^3 - n)); df = m - 1; - pval = 1 - chisquare_cdf (k, df); + pval = 1 - chi2cdf (k, df); if (nargout == 0) printf ("pval: %g\n", pval); diff -r 0a5a769b8fc0 -r f63ee6a20f57 src/ChangeLog --- a/src/ChangeLog Sat Jan 30 19:28:25 2010 +0100 +++ b/src/ChangeLog Sat Jan 30 21:51:59 2010 +0100 @@ -1,3 +1,7 @@ +2010-01-30 Thorsten Meyer + + * DLD-FUNCTIONS/time.cc: Replace struct_contains by isfield. + 2010-01-30 Jaroslav Hajek * pt-assign.h (tree_multi_assignment::etype): Remove. diff -r 0a5a769b8fc0 -r f63ee6a20f57 src/DLD-FUNCTIONS/time.cc --- a/src/DLD-FUNCTIONS/time.cc Sat Jan 30 19:28:25 2010 +0100 +++ b/src/DLD-FUNCTIONS/time.cc Sat Jan 30 21:51:59 2010 +0100 @@ -149,16 +149,16 @@ %!test %! ts = gmtime (time ()); %! assert((isstruct (ts) -%! && struct_contains (ts, "usec") -%! && struct_contains (ts, "year") -%! && struct_contains (ts, "mon") -%! && struct_contains (ts, "mday") -%! && struct_contains (ts, "sec") -%! && struct_contains (ts, "min") -%! && struct_contains (ts, "wday") -%! && struct_contains (ts, "hour") -%! && struct_contains (ts, "isdst") -%! && struct_contains (ts, "yday"))); +%! && isfield (ts, "usec") +%! && isfield (ts, "year") +%! && isfield (ts, "mon") +%! && isfield (ts, "mday") +%! && isfield (ts, "sec") +%! && isfield (ts, "min") +%! && isfield (ts, "wday") +%! && isfield (ts, "hour") +%! && isfield (ts, "isdst") +%! && isfield (ts, "yday"))); %!error gmtime (); @@ -213,16 +213,16 @@ %!test %! ts = localtime (time ()); %! assert((isstruct (ts) -%! && struct_contains (ts, "usec") -%! && struct_contains (ts, "year") -%! && struct_contains (ts, "mon") -%! && struct_contains (ts, "mday") -%! && struct_contains (ts, "sec") -%! && struct_contains (ts, "min") -%! && struct_contains (ts, "wday") -%! && struct_contains (ts, "hour") -%! && struct_contains (ts, "isdst") -%! && struct_contains (ts, "yday"))); +%! && isfield (ts, "usec") +%! && isfield (ts, "year") +%! && isfield (ts, "mon") +%! && isfield (ts, "mday") +%! && isfield (ts, "sec") +%! && isfield (ts, "min") +%! && isfield (ts, "wday") +%! && isfield (ts, "hour") +%! && isfield (ts, "isdst") +%! && isfield (ts, "yday"))); %!error localtime ();