0
|
1 <html><head><title>TestPAK: embedded tests for Octave scripts</title></head> |
|
2 <body> |
|
3 |
|
4 <h1>TestPAK: embedded tests for Octave scripts</h1> |
|
5 |
|
6 <ul> |
|
7 <li><a href=testfun/example.m>example</a>, <a href=testfun/demo.m>demo</a><br> |
|
8 example('name') shows sample code for using function 'name', and |
|
9 demo('name') runs that code. The examples are stored in the script file |
|
10 for each function. Not all functions have examples (yet). |
|
11 <li><a href=testfun/test.m>test</a><br> |
|
12 test('name') runs all test code associated with the function 'name'. |
|
13 The test code is stored in the script file for each function. Not |
|
14 all functions have tests written (yet). |
|
15 <li><a href=testfun/assert.m>assert</a>, |
|
16 <a href=testfun/pretty.cc>pretty</a><br> |
|
17 assert(x,y) produces an error if x != y. pretty(x) formats the data |
|
18 in x, no matter what it is, and is used by assert to construct the |
|
19 error message. |
|
20 <li><a href=testfun/octave-mod.el>emacs support</a> for test code in |
|
21 octave scripts. Also available as a |
|
22 <a href=testfun/octave-mod.diff>diff against 2.0.14</a> |
|
23 </ul> |
|
24 |
|
25 </body></html> |