1
0
Ver Fonte

Fixing TestRunner failure, returning ^nil to collectionClass

Herbert Vojčík há 11 anos atrás
pai
commit
2fac53060f
2 ficheiros alterados com 7 adições e 6 exclusões
  1. 4 4
      js/Kernel-Tests.js
  2. 3 2
      st/Kernel-Tests.st

+ 4 - 4
js/Kernel-Tests.js

@@ -1833,11 +1833,11 @@ protocol: 'fixture',
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-self._subclassResponsibility();
-return self}, function($ctx1) {$ctx1.fill(self,"collectionClass",{},smalltalk.CollectionTest.klass)})},
+return nil;
+}, function($ctx1) {$ctx1.fill(self,"collectionClass",{},smalltalk.CollectionTest.klass)})},
 args: [],
-source: "collectionClass\x0a\x09\x22Answers class of collection type tested\x22\x0a\x0a\x09self subclassResponsibility",
-messageSends: ["subclassResponsibility"],
+source: "collectionClass\x0a\x09\x22Answers class of collection type tested,\x0a\x09or nil if test is abstract\x22\x0a\x0a\x09^ nil",
+messageSends: [],
 referencedClasses: []
 }),
 smalltalk.CollectionTest.klass);

+ 3 - 2
st/Kernel-Tests.st

@@ -553,9 +553,10 @@ testSize
 !CollectionTest class methodsFor: 'fixture'!
 
 collectionClass
-	"Answers class of collection type tested"
+	"Answers class of collection type tested,
+	or nil if test is abstract"
 
-	self subclassResponsibility
+	^ nil
 ! !
 
 !CollectionTest class methodsFor: 'testing'!