# HG changeset patch # User Claus Gittinger # Date 1431080936 -7200 # Node ID 756214d7dcca65b55748f6f9b1dfb6de2dba7521 # Parent 8e42523d1d4a1e6e023e1b03fd3072a694e6f80f class: TestCaseOutcome changed: #= diff -r 8e42523d1d4a -r 756214d7dcca TestCaseOutcome.st --- a/TestCaseOutcome.st Thu Apr 23 03:47:43 2015 +0000 +++ b/TestCaseOutcome.st Fri May 08 12:28:56 2015 +0200 @@ -1,5 +1,9 @@ +"{ Encoding: utf8 }" + "{ Package: 'stx:goodies/sunit' }" +"{ NameSpace: Smalltalk }" + Object subclass:#TestCaseOutcome instanceVariableNames:'testCase result properties' classVariableNames:'' @@ -163,10 +167,11 @@ !TestCaseOutcome methodsFor:'comparing'! = anotherOutcome + |myTestCase otherTestCase| ^(anotherOutcome isKindOf: self class) - and:[self testCase class == anotherOutcome testCase class - and:[self testCase selector == anotherOutcome testCase selector]]. + and:[(myTestCase := self testCase) class == (otherTestCase := anotherOutcome testCase) class + and:[myTestCase selector == otherTestCase selector]]. "Created: / 20-08-2011 / 14:24:39 / Jan Vrany " ! @@ -203,6 +208,6 @@ !TestCaseOutcome class methodsFor:'documentation'! version_CVS - ^ '$Header: /cvs/stx/stx/goodies/sunit/TestCaseOutcome.st,v 1.6 2014-04-16 22:06:04 cg Exp $' + ^ '$Header: /cvs/stx/stx/goodies/sunit/TestCaseOutcome.st,v 1.7 2015-05-08 10:28:56 cg Exp $' ! !