#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
Status: | new → assigned |
---|
comment:2 Changed 21 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000147 |
---|
Note: See
TracTickets for help on using
tickets.
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.