|
phystricks
|
Classes | |
| class | SilentOutput |
Functions | |
| def | roundingMinMax (d) |
| def | assert_true (b, failure_message="") |
| def | assert_false (b, failure_message="") |
| def | assert_equal (e1, e2, failure_message="") |
| def | assert_almost_equal (e1, e2, epsilon=0.0001, failure_message="") |
| def | echo_function (text) |
| def | echo_single_test (text) |
| def Testing.assert_almost_equal | ( | e1, | |
| e2, | |||
epsilon = 0.0001, |
|||
failure_message = "" |
|||
| ) |
Raise a FailedAssertException if the two expressions 'e1' and 'e2'
are not equal up to 'epsilon'
First try to use
```
e1.is_almost_equal(e2,epsilon)
```
because some objects in 'phystricks' have that method.
If `e1` has not that method :
- assume that `e1` and `e2` are numerical
- compute a numerical approximation
- fail if the absolute value of the difference
is larger than `epsilon`
| def Testing.assert_equal | ( | e1, | |
| e2, | |||
failure_message = "" |
|||
| ) |
Raise a FailedAssertException if the two expressions 'e1' and 'e2' are not equal.
| def Testing.assert_false | ( | b, | |
failure_message = "" |
|||
| ) |
Raise a FailedAssertException if the boolean is True
| def Testing.assert_true | ( | b, | |
failure_message = "" |
|||
| ) |
Raise a FailedAssertException if the boolean is False.
| def Testing.echo_function | ( | text | ) |
| def Testing.echo_single_test | ( | text | ) |
| def Testing.roundingMinMax | ( | d | ) |
From a dictionary of "xmin,..." return the dictionary of three-digit rounded values
1.8.11