[Pkg] The Trunk: KernelTests-eem.274.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jul 16 22:46:41 UTC 2014


Eliot Miranda uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-eem.274.mcz

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

Name: KernelTests-eem.274
Author: eem
Time: 16 July 2014, 3:46:21.204 pm
UUID: bdd6cda6-6011-4885-b368-877c23cb305e
Ancestors: KernelTests-dtl.273

Fix compact class index tests for Spur.
Fix TimeTest>>testHash for hashing (i.e. Spur).
Add a test of the ranges of SmallInteger>>maxVal/minVal that
will serve to catch forgetting to change thse methods when
Spur 64-bits arrives.

=============== Diff against KernelTests-dtl.273 ===============

Item was added:
+ ----- Method: IntegerTest>>testRange (in category 'tests - basic') -----
+ testRange
+ 	self assert: SmallInteger maxVal class equals: SmallInteger.
+ 	self assert: (SmallInteger maxVal + 1) class equals: LargePositiveInteger.
+ 	self assert: SmallInteger minVal class equals: SmallInteger.
+ 	self assert: (SmallInteger minVal - 1) class equals: LargeNegativeInteger!

Item was changed:
  ----- Method: LargeNegativeIntegerTest>>testCompactClassIndex (in category 'tests') -----
  testCompactClassIndex
+ 	Character instSize > 0 ifTrue: "No compact classes on Spur..."
+ 		[self assert: 4 equals: LargeNegativeInteger indexIfCompact]
- 	self assert: 4 equals: LargeNegativeInteger indexIfCompact.
  !

Item was changed:
  ----- Method: LargePositiveIntegerTest>>testCompactClassIndex (in category 'tests') -----
  testCompactClassIndex
+ 	Character instSize > 0 ifTrue: "No compact classes on Spur..."
+ 		[self assert: 5 equals: LargePositiveInteger indexIfCompact]!
- 	self assert: 5 equals: LargePositiveInteger indexIfCompact.!

Item was changed:
  ----- Method: TimeTest>>testHash (in category 'testing') -----
  testHash
+ 	self assert: aTime hash = (Character instSize > 0 ifTrue: [607004] ifFalse: [101409191])!
- 	self assert: aTime hash =  607004.!



More information about the Packages mailing list