comparison scripts/testfun/assert.m @ 8325:b93ac0586e4b

spelling corrections Here is a patch with some spelling corrections to the manual. changeset: 8308:aeaf884ea9af user: Brian Gough <bjg@gnu.org> date: Fri Nov 07 09:26:17 2008 -0500 summary: [docs] assoicated => associated
author Brian Gough<bjg@network-theory.co.uk>
date Mon, 17 Nov 2008 11:38:39 +0100
parents cf59d542f33e
children bc982528de11
comparison
equal deleted inserted replaced
8324:1e9cf8ff48f8 8325:b93ac0586e4b
40 ## observed and expected can be strings, scalars, vectors, matrices, 40 ## observed and expected can be strings, scalars, vectors, matrices,
41 ## lists or structures. 41 ## lists or structures.
42 ## 42 ##
43 ## @item assert(@var{observed}, @var{expected}, @var{tol}) 43 ## @item assert(@var{observed}, @var{expected}, @var{tol})
44 ## Accept a tolerance when comparing numbers. 44 ## Accept a tolerance when comparing numbers.
45 ## If @var{tol} is possitive use it as an absolute tolerance, will produce an error if 45 ## If @var{tol} is positive use it as an absolute tolerance, will produce an error if
46 ## @code{abs(@var{observed} - @var{expected}) > abs(@var{tol})}. 46 ## @code{abs(@var{observed} - @var{expected}) > abs(@var{tol})}.
47 ## If @var{tol} is negative use it as a relative tolerance, will produce an error if 47 ## If @var{tol} is negative use it as a relative tolerance, will produce an error if
48 ## @code{abs(@var{observed} - @var{expected}) > abs(@var{tol} * @var{expected})}. 48 ## @code{abs(@var{observed} - @var{expected}) > abs(@var{tol} * @var{expected})}.
49 ## If @var{expected} is zero @var{tol} will always be used as an absolute tolerance. 49 ## If @var{expected} is zero @var{tol} will always be used as an absolute tolerance.
50 ## @end table 50 ## @end table