[Pharo-project] methodChanged: bug
Hi guys When you remove an Trait from the use: clause you get an DNU because the item in anEvent item is nil. It would be good to fix that. Stef methodChanged: anEvent | cls sel | "cls contains the class in which the method sel has been modified" cls := anEvent item methodClass. (cls inheritsFrom: TestCase) ifFalse: [^ self]. "sel contains the method name that has been modified" sel := anEvent item selector. "this selector has to be a test" (sel beginsWith: 'test') ifFalse: [^ self]. " remove sel from the known test results" TestResult removeFromTestHistory: sel in: cls.
On Sat, Nov 29, 2008 at 4:51 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
When you remove an Trait from the use: clause you get an DNU because the item in anEvent item is nil. It would be good to fix that.
Issue #363 -- Damien Cassou http://damiencassou.seasidehosting.st
participants (2)
-
Damien Cassou -
Stéphane Ducasse