[FIX] [TEST][su][er][cd][sm Associations-equal-reposted

Brent Pinkney brent.pinkney at aircom.co.za
Wed Jan 21 18:25:38 UTC 2004


I have attached a wee SUnit test case to confirm this bug and its fix:

testEquality

	| a b |
	a := 1 -> 'one'.
	b := 1 -> 'een'.
	
	self
		assert: (a key = b key);
		deny: (a value = b value);
		deny: (a = b)


Before the change set, (1 -> 'one') =(1 -> 'een') ==> true becuase the 
keys are equal.

The fix is trivial.

Brent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: associationTest-brp.1.cs.gz
Type: application/x-gzip
Size: 325 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040121/9116981d/associationTest-brp.1.cs.bin


More information about the Squeak-dev mailing list