[squeak-dev] The Trunk: Tests-ul.97.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Oct 24 04:12:55 UTC 2010


Levente Uzonyi uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-ul.97.mcz

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

Name: Tests-ul.97
Author: ul
Time: 24 October 2010, 6:06:56.495 am
UUID: f5f99e31-06dd-3048-b380-77cc97804a79
Ancestors: Tests-eem.96

Bitmap >> #writeOn: raises an error, because it evaluates code which sends #inline: and #var:declareC:, etc. Since these methods were moved to VMMaker these sends result in a DNU.

=============== Diff against Tests-eem.96 ===============

Item was changed:
+ ----- Method: BitmapBugz>>testBitmapByteAt (in category 'tests') -----
- ----- Method: BitmapBugz>>testBitmapByteAt (in category 'as yet unclassified') -----
  testBitmapByteAt
  	| bm |
  	bm := Bitmap new: 1.
  	1 to: 4 do:[:i|
  		self should:[bm byteAt: i put: 1000] raise: Error.
  	].!

Item was added:
+ ----- Method: BitmapBugz>>testWriteOn (in category 'tests') -----
+ testWriteOn
+ 
+ 	| original binary copy |
+ 	original := Bitmap new: 1.
+ 	original byteAt: 1 put: 42.
+ 	binary := ByteArray streamContents: [ :stream |
+ 		original writeOn: stream ].
+ 	copy := Bitmap newFromStream: binary readStream.
+ 	self assert: original = copy!




More information about the Squeak-dev mailing list