comparison scripts/testfun/assert.m @ 5642:2618a0750ae6

[project @ 2006-03-06 21:26:48 by jwe]
author jwe
date Mon, 06 Mar 2006 21:26:54 +0000
parents f812a0680d05
children 34f96dd5441b
comparison
equal deleted inserted replaced
5641:eb998631a4aa 5642:2618a0750ae6
37 ## Produce an error if relative error is less than tolerance. That is, 37 ## Produce an error if relative error is less than tolerance. That is,
38 ## @code{abs(@var{observed} - @var{expected}) > @var{tol} * @var{expected}}. 38 ## @code{abs(@var{observed} - @var{expected}) > @var{tol} * @var{expected}}.
39 ## Absolute error @code{abs(@var{observed} - @var{expected}) > abs(@var{tol})} 39 ## Absolute error @code{abs(@var{observed} - @var{expected}) > abs(@var{tol})}
40 ## will be used when tolerance is negative or when the expected value is zero. 40 ## will be used when tolerance is negative or when the expected value is zero.
41 ## @end table 41 ## @end table
42 ## 42 ## @seealso{test}
43 ## @end deftypefn 43 ## @end deftypefn
44 ## @seealso{test}
45 44
46 ## TODO: Output throttling: don't print out the entire 100x100 matrix, 45 ## TODO: Output throttling: don't print out the entire 100x100 matrix,
47 ## TODO: but instead give a summary; don't print out the whole list, just 46 ## TODO: but instead give a summary; don't print out the whole list, just
48 ## TODO: say what the first different element is, etc. To do this, make 47 ## TODO: say what the first different element is, etc. To do this, make
49 ## TODO: the message generation type specific. 48 ## TODO: the message generation type specific.