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 19 years ago

Last modified 18 years ago

#273 closed defect (fixed)

Date Succ(date, timeSet, -k), with k>0

Reported by: Javier Gallardo Owned by: Víctor de Buen Remiro
Priority: normal Milestone:
Component: TimeSetAlgebra Version: head
Severity: major Keywords:
Cc:

Description

Date fec = y2003m04d23;

please try this in on different tol versions

Date fec02 = Succ(fec, Succ(D(1), -2, WD(5)), 2);
Date fec01 = Succ(fec, Succ(D(1), -2, WD(5)), 1);

I've got:
fec01 = y2003m04d18 which is prior to fec (Version 2005/04/08)
fec02 = y2003m04d25 (Version 2005/04/08)
fec02 = y2003m05d30 which doesn´t belong to Succ(D(1), -2, WD(5)) (Version
2004/05/04)

This produces always the same Date in all the version si have tried
fec.0k = y2003m04d18 !!!
Date fec.01 = Succ(fec, Succ(D(1), -2, WD(5)), -1);
Date fec.02 = Succ(fec, Succ(D(1), -2, WD(5)), -2);
Date fec.03 = Succ(fec, Succ(D(1), -2, WD(5)), -3);
Date fec.04 = Succ(fec, Succ(D(1), -2, WD(5)), -4);

Change History (5)

comment:1 Changed 20 years ago by danirus

Hi,

All this stuff will be changed in a short time. But anyway I would like to know
what exactly you want to do. The fact is that with your example I could check
the validity of next generation Succ functions, but the code you post doesn't
tell what you are trying, I mean, it's a matter because both functions you
mention have problems: Date Succ and TimeSet.

Can you post, please, more information on the code porpouse.
Thanks a lot.
Daniel

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

Owner: changed from danirus to Víctor de Buen Remiro

Pardon to have forgotten this bug.
We are working about it
Thanks to report it

comment:3 Changed 19 years ago by Víctor de Buen Remiro

Status: newassigned

comment:4 Changed 19 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: assignedclosed

comment:5 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_000273
Note: See TracTickets for help on using tickets.