Changes between Version 1 and Version 2 of ValidationHelperFunctionsProposal
- Timestamp:
- Sep 11, 2007, 11:50:49 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ValidationHelperFunctionsProposal
v1 v2 10 10 11 11 This will raise !ValidationError(msg) if expression evalautes to true. 12 13 == assure_equal(val1, val2, msg) == 14 15 Raises !ValidationError(msg) if val1 != val2. 16 17 == assure_not_equal(val1, val2, msg) == 18 19 Raises !ValidationError(msg) if val1 == val2. 12 20 13 21 == assure_almost_equal(first, second, msg, delta=0.1) ==