class: TestCaseOutcome
authorClaus Gittinger <cg@exept.de>
Fri, 08 May 2015 12:28:56 +0200
changeset 610 756214d7dcca
parent 609 8e42523d1d4a
child 620 637f538bfcd1
class: TestCaseOutcome changed: #=
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 <jan.vrany@fit.cvut.cz>"
 !
@@ -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 $'
 ! !