Ticket #161 (closed enhancement: fixed)
Support the expression: 0 <= x < 10
Reported by: | Chuck | Owned by: | eric.sellon |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
Checking that a numeric variable falls between two boundaries can come up frequently for some applications. And especially in Cobra which has support for assert, require, ensure and invariant.
The general form is:
<boundaryA> <compare> <expression> <compare> <boundaryB>
Python can be mined for more information as this feature comes directly from that language.
Note that the <expression> should not be evaluated more than once. The test suite should verify that.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.