Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

InEvaluator ignores precision #32

Closed
brynrhodes opened this issue Dec 20, 2017 · 1 comment
Closed

InEvaluator ignores precision #32

brynrhodes opened this issue Dec 20, 2017 · 1 comment
Assignees

Comments

@brynrhodes
Copy link
Member

When translating the following script:

define TestPeriod1: Interval[@2017-12-20T11:00:00, @2017-12-21T21:00:00]
define TestPeriod2: Interval[@2017-12-20T10:30:00, @2017-12-20T12:00:00]
define Test11: TestPeriod2 starts 1 day or less on or after day of start of TestPeriod1

The resulting EML uses an "in" with a precision of "day", but the evaluator is ignoring the "day" precision of the operator.

@brynrhodes
Copy link
Member Author

In reviewing the fix, I found this behavior:

define Test323: @2017-12-21T02:00:00.0 >= @2017-12-20T11:00:00.0
define Test324: @2017-12-21T02:00:00.0 same or after @2017-12-20T11:00:00.0

These expressions are equivalent and should both return true, but the first returns true, while the second returns false

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants