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

Closed 21 years ago

Last modified 18 years ago

#147 closed defect (fixed)

an error in "In" function when initial and final date are equal

Reported by: imendez Owned by: danirus
Priority: normal Milestone:
Component: TimeSetAlgebra Version: 1.1.1
Severity: normal Keywords:
Cc:

Description

This code fails:

TimeSet Tms = In(Today, Today);

returning next message:

Warning: Argumentos erróneos. Objeto creado como W (conjunto temporal vací
o)

By the way, the messages containing accents are showed with bad characters

Change History (3)

comment:1 Changed 21 years ago by danirus

Status: newassigned

comment:2 Changed 21 years ago by danirus

Resolution: fixed
Status: assignedclosed

This bug has been resolved.
The problem was at BUserTimeSet object construction time. The constructor had a
clause that returns an exception when iniDate>=lastDate, but should only when
greater.
Althought we can consider using an Interval (function In) to define a TimeSet
between an initDate equal to lastDate is not a normal (and a little bit malicious)
behaviour. ;-) ...other way is a good example to improve Tol.

The error in characters with accents of the error messages
(btol/bgrammar/tol_boper.h) has been also resolved.

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