2004-11-07 15:22:39

Provides the Tester class, which is the hub for all testing.

Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Uses func to compare the expected result with actual result of a regression test.

diff is ignored.

msg is an optional custom message to print if the comparison tests positive (i.e. the results differ).

func is the comparison function to use, and must be a function that returns the same as the built-in cmp().

stackLevel affects exception reporting.

funcArgs is an optional dictionary of keyword arguments that will be passed to the comparison function, if the dictionary is not empty.

Test that 'actual' is in 'expected'

debug-level messages

error conditions

system is unusable

informational

warning conditions

- '\x1b[33m'
- '\x1b[1;30m'
- '\x1b[1;32m'
- '\x1b[0m'
- '\x1b[1;31m'
- '\x1b[1;37m'
- '\x1b[1;33m'
- '========================================================================'
- '------------------------------------------------------------------------'

Calculate correct line number of stack frame given in frame.

Shorthand for 'format_list(extract_stack(f, limit))'.

1
3
4
1
3
0
2