[squeak-dev] The Inbox: Tests-lrnp.482.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Apr 18 23:38:06 UTC 2022

A new version of Tests was added to project The Inbox:

==================== Summary ====================

Name: Tests-lrnp.482
Author: lrnp
Time: 18 April 2022, 5:38:05.257552 pm
UUID: dbcc2021-223d-45e4-9f92-bd5d7429c657
Ancestors: Tests-ct.481

make test class not more restrictive than tested class

A PackageInfo will return false if the categoryName is nil (via #category:matches:), but using #sameAs: will eventually signal an error. Matching PackageInfo's contract allows it to be present in the PackageOrganizer without needing to support it specially.

=============== Diff against Tests-ct.481 ===============

Item was changed:
  ----- Method: MCMockPackageInfo>>includesSystemCategory: (in category 'testing') -----
  includesSystemCategory: categoryName
+ 	categoryName ifNil: [^false].
  	^self systemCategories anySatisfy: [:cat | cat sameAs: categoryName]!

More information about the Squeak-dev mailing list