[Pharo-project] Please help! Weird error!
Heya folks, I've got a failing test here, screenshot attached. When I inspect events, it contains the mock I'm looking for. For some reason, the self assert: (events includes: mockEvent1) fails. But when I inspect, events is an OrderedCollection with one item, and it appears to be the mock. Please help! Thanks in advance! -Steven
Steven R. Baker wrote:
Heya folks,
I've got a failing test here, screenshot attached. When I inspect events, it contains the mock I'm looking for. For some reason, the self assert: (events includes: mockEvent1) fails. But when I inspect, events is an OrderedCollection with one item, and it appears to be the mock.
Please help!
Thanks in advance!
-Steven
When you say "appears", can you confirm this by comparing: (mockEvent1 hash) with (events collect: [ :ev | ev hash ]) cheers -ben
weird bugs with hash and = redefinition? On Mar 24, 2013, at 5:14 AM, "Steven R. Baker" <steven@stevenrbaker.com> wrote:
Heya folks,
I've got a failing test here, screenshot attached. When I inspect events, it contains the mock I'm looking for. For some reason, the self assert: (events includes: mockEvent1) fails. But when I inspect, events is an OrderedCollection with one item, and it appears to be the mock.
Please help!
Thanks in advance!
-Steven
<Screen Shot 2013-03-24 at 1.11.43 AM.png>
participants (3)
-
Ben Coman -
stephane ducasse -
Steven R. Baker