Mercurial > octave
diff doc/interpreter/testfun.txi @ 10846:a4f482e66b65
Grammarcheck more of the documentation.
Use @noindent macro appropriately.
Limit line length to 80 characters.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 01 Aug 2010 20:22:17 -0700 |
parents | 322f43e0e170 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/doc/interpreter/testfun.txi Sun Aug 01 14:50:51 2010 -0400 +++ b/doc/interpreter/testfun.txi Sun Aug 01 20:22:17 2010 -0700 @@ -117,6 +117,7 @@ %!assert (@dots{}) @end example +@noindent which is equivalent to: @example @@ -184,12 +185,13 @@ %!error <passes!> error('this test passes!'); @end example -If the code doesn't generate an error, the test fails. For example, +If the code doesn't generate an error, the test fails. For example: @example %!error "this is an error because it succeeds."; @end example +@noindent produces @example @@ -214,6 +216,7 @@ @end group @end example +@noindent produces @example @@ -282,6 +285,7 @@ @end group @end example +@noindent or @example @@ -292,6 +296,7 @@ @end group @end example +@noindent but then the code will have to be on the load path and the user will have to remember to type test('name.cc'). Conversely, you can separate the tests from normal Octave script files by putting