#236 closed defect (fixed)
Range works bad
Reported by: | imendez | Owned by: | danirus |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | TimeSetAlgebra | Version: | 1.1.2 |
Severity: | normal | Keywords: | |
Cc: |
Description
In this code:
TimeSet CtIniNav = Succ(M(12)*D(24), -1, WD(6));
TimeSet CtFinNav = Range(CtIniNav, 0, 22);
Real bel = Belong(y2005m12d18, CtFinNav);
date y2005m12d18 doesn´t belong to 'CtFinNav' ('bel' is 0, instead of 1). It
happens when December 17th. belongs to 'CtIniNav' (1983, 1988, 1994, 2005,
2011...). But, curiously, if we define December 17th. in other way:
TimeSet Dic17 = Succ(D(18)*M(12), -1, Diario);
TimeSet CtFinNav = Range(Dic17, 0, 22);
Real bel = Belong(y2005m12d18, CtFinNav);
'bel' takes a rigth value.
Regards.
Change History (2)
comment:1 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000236 |
---|
Problem was solved but not notified.
A test has been added to tol_tests/tol/Bugzilla/bug_000236
Thanks to report