[Pharo-project] Date comparison broken
Hello | yesterday | yesterday := Date yesterday. yesterday < yesterday On Phalo 2.0, this evaluates to 'false'. I'ts not a joke. -- Milan Mimica http://sparklet.sf.net
Please ignore. I whish there was a 'unsend' button. On 20 April 2013 18:31, Milan Mimica <milan.mimica@gmail.com> wrote:
Hello
| yesterday | yesterday := Date yesterday. yesterday < yesterday
On Phalo 2.0, this evaluates to 'false'. I'ts not a joke.
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
Actually, please don't ignore me. I knew there was sometime broken: (Date today - 1 day) < (Date today - 1 day) evaluates to 'true' On 20 April 2013 18:33, Milan Mimica <milan.mimica@gmail.com> wrote:
Please ignore. I whish there was a 'unsend' button.
On 20 April 2013 18:31, Milan Mimica <milan.mimica@gmail.com> wrote:
Hello
| yesterday | yesterday := Date yesterday. yesterday < yesterday
On Phalo 2.0, this evaluates to 'false'. I'ts not a joke.
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
I found a bug: in DateAndTime >> < julianDayNumber < other julianDayNumber ifTrue: [ ^ true ]. should be: self julianDayNumber < other julianDayNumber ifTrue: [ ^ true ]. On 20 April 2013 18:43, Milan Mimica <milan.mimica@gmail.com> wrote:
Actually, please don't ignore me. I knew there was sometime broken: (Date today - 1 day) < (Date today - 1 day) evaluates to 'true'
On 20 April 2013 18:33, Milan Mimica <milan.mimica@gmail.com> wrote:
Please ignore. I whish there was a 'unsend' button.
On 20 April 2013 18:31, Milan Mimica <milan.mimica@gmail.com> wrote:
Hello
| yesterday | yesterday := Date yesterday. yesterday < yesterday
On Phalo 2.0, this evaluates to 'false'. I'ts not a joke.
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
yes ;) could you open an issue and possibly add a test that covers this? that would be great. On 2013-04-20, at 19:09, Milan Mimica <milan.mimica@gmail.com> wrote:
I found a bug:
in DateAndTime >> <
julianDayNumber < other julianDayNumber ifTrue: [ ^ true ].
should be:
self julianDayNumber < other julianDayNumber ifTrue: [ ^ true ].
On 20 April 2013 18:43, Milan Mimica <milan.mimica@gmail.com> wrote:
Actually, please don't ignore me. I knew there was sometime broken: (Date today - 1 day) < (Date today - 1 day) evaluates to 'true'
On 20 April 2013 18:33, Milan Mimica <milan.mimica@gmail.com> wrote:
Please ignore. I whish there was a 'unsend' button.
On 20 April 2013 18:31, Milan Mimica <milan.mimica@gmail.com> wrote:
Hello
| yesterday | yesterday := Date yesterday. yesterday < yesterday
On Phalo 2.0, this evaluates to 'false'. I'ts not a joke.
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
On 20 April 2013 19:10, Camillo Bruni <camillobruni@gmail.com> wrote:
yes ;)
could you open an issue and possibly add a test that covers this?
Only if http://bugs.pharo.org woudl let me register. It says "Invalid email address." when I fill the form. I have pushed the changes to http://ss3.gemstone.com/ss/PharoInbox -- Milan Mimica http://sparklet.sf.net
I just create you an account :) Ben On Apr 20, 2013, at 7:44 PM, Milan Mimica <milan.mimica@gmail.com> wrote:
On 20 April 2013 19:10, Camillo Bruni <camillobruni@gmail.com> wrote: yes ;)
could you open an issue and possibly add a test that covers this?
Only if http://bugs.pharo.org woudl let me register. It says "Invalid email address." when I fill the form. I have pushed the changes to http://ss3.gemstone.com/ss/PharoInbox
-- Milan Mimica http://sparklet.sf.net
There you go https://pharo.fogbugz.com/default.asp?10343 On 20 April 2013 19:10, Camillo Bruni <camillobruni@gmail.com> wrote:
yes ;)
could you open an issue and possibly add a test that covers this?
that would be great.
On 2013-04-20, at 19:09, Milan Mimica <milan.mimica@gmail.com> wrote:
I found a bug:
in DateAndTime >> <
julianDayNumber < other julianDayNumber ifTrue: [ ^ true ].
should be:
self julianDayNumber < other julianDayNumber ifTrue: [ ^ true ].
On 20 April 2013 18:43, Milan Mimica <milan.mimica@gmail.com> wrote:
Actually, please don't ignore me. I knew there was sometime broken: (Date today - 1 day) < (Date today - 1 day) evaluates to 'true'
On 20 April 2013 18:33, Milan Mimica <milan.mimica@gmail.com> wrote:
Please ignore. I whish there was a 'unsend' button.
On 20 April 2013 18:31, Milan Mimica <milan.mimica@gmail.com> wrote:
Hello
| yesterday | yesterday := Date yesterday. yesterday < yesterday
On Phalo 2.0, this evaluates to 'false'. I'ts not a joke.
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
-- Milan Mimica http://sparklet.sf.net
On Apr 20, 2013, at 8:51 PM, Milan Mimica wrote:
There you go https://pharo.fogbugz.com/default.asp?10343
If you're up for it taking a wider look, it's really part of a family of errors still lingering after the refactoring: https://pharo.fogbugz.com/f/cases/10072/DateAndTime-instance-variable-access Cheers, Henry
participants (4)
-
Benjamin -
Camillo Bruni -
Henrik Johansen -
Milan Mimica