5.5. Test 1: A simple test

5.5. Test 1: A simple test

On-the-fly python test script follows.
Start python section from tutorial.pak
   328: print 'A simple test'
End python section from tutorial.pak
Actual output follows.
Start output section of /usr/local/bin/python /usr/tmp/@13003.1200_test.py
     1: A simple test
End output section to /usr/local/bin/python /usr/tmp/@13003.1200_test.py
The test is also registered in a table of tests.

It is also possible to provide expected output: Interscript will verify your code by comparing the expected and actual output, and print a difference table if the test failed. Note that the difference table is only available if the module "interscript.utilities.diff" is available and operates correctly: the current implementation uses GNU diff invoked using "os.system()".
5.5.1. Weaver Control
5.5.2. Perl hates @