[squeak-dev] The Trunk: Tests-cmm.428.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Mar 13 23:09:39 UTC 2020


Chris Muller uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-cmm.428.mcz

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

Name: Tests-cmm.428
Author: cmm
Time: 13 March 2020, 6:09:37.220407 pm
UUID: cd4af6d7-7fed-44c1-bfe7-64a2de3cb7ee
Ancestors: Tests-nice.427

Tests for #caseError.

=============== Diff against Tests-nice.427 ===============

Item was added:
+ TestCase subclass: #CaseErrorTest
+ 	instanceVariableNames: ''
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'Tests-Bugs'!

Item was added:
+ ----- Method: CaseErrorTest>>printOn: (in category 'tests') -----
+ printOn: aStream
+ 	3 caseOf: 
+ 		{ [1] -> [aStream nextPutAll: 'option 1'].
+ 		[2] -> [aStream nextPutAll: 'option 2'] }
+ 	"caseError in printOn:"!

Item was added:
+ ----- Method: CaseErrorTest>>testCaseError (in category 'tests') -----
+ testCaseError
+ 	self
+ 		should:
+ 			[2 caseOf:
+ 				{ [1] -> ['option 1'] }]
+ 		raise: Error!

Item was added:
+ ----- Method: CaseErrorTest>>testCaseErrorInPrintOn (in category 'tests') -----
+ testCaseErrorInPrintOn
+ 	self should: [ self printString ] raise: Error!



More information about the Squeak-dev mailing list