[Pkg] The Trunk: Tests-eem.85.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Jul 18 00:16:15 UTC 2010


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

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

Name: Tests-eem.85
Author: eem
Time: 17 July 2010, 5:16:01.983 pm
UUID: c6df7edd-c322-48b5-ac1f-44df117a3392
Ancestors: Tests-ar.84

Update the hex tests to document the reverted old behaviour of hex required by the Cog VMMaker (i.e. that hex prints with the base prefix 16r).

=============== Diff against Tests-ar.84 ===============

Item was changed:
  ----- Method: HexTest>>testIntegerHex (in category 'as yet unclassified') -----
  testIntegerHex
+ 	| result |
+ 	result := 15 asInteger hex.
+ 	self assert: result = '16rF'.
+ 	result := 0 asInteger hex.
+ 	self assert: result = '16r0'.
+ 	result := 255 asInteger hex.
+ 	self assert: result = '16rFF'.
+ 	result := 90 asInteger hex.
+ 	self assert: result = '16r5A'!
- | result |
- result _ 15 asInteger hex.
- self assert: result = '0F'.
- result _ 0 asInteger hex.
- self assert: result = '00'.
- result _ 255 asInteger hex.
- self assert: result = 'FF'.
- result _ 90 asInteger hex.
- self assert: result = '5A'.
- 
- !



More information about the Packages mailing list