Changes between Version 4 and Version 5 of Contracts
- Timestamp:
- 10/23/10 12:32:01 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Contracts
v4 v5 10 10 The exception message shows the value of each subexpression in the condition, just like the Cobra 11 11 'assert' exception. 12 For example, 'x > y' failing will show the values of 'x' and 'y'. 12 For example, 'x > y' failing will show the values of 'x' and 'y': 13 14 {{{ 15 Unhandled Exception: Cobra.Lang.RequireException: 16 sourceSite = demo.cobra:5 in Demo.subtract for object Demo 17 info = nil 18 this = Demo 19 (x > y) = false 20 x = 3 21 y = 6 22 }}} 13 23 14 24 You can turn off contracts when building shipping software in order to boost