close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 20 years ago

Closed 18 years ago

Last modified 18 years ago

#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 Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

Problem was solved but not notified.
A test has been added to tol_tests/tol/Bugzilla/bug_000236

Thanks to report

comment:2 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000236
Note: See TracTickets for help on using tickets.