[Pkg] The Trunk: KernelTests-nice.246.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Feb 24 17:17:28 UTC 2013


Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.246.mcz

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

Name: KernelTests-nice.246
Author: nice
Time: 24 February 2013, 6:16:47.822 pm
UUID: fbe78ded-66b1-4612-b609-6bda2e45e582
Ancestors: KernelTests-nice.245

Diminish excessive usage of ReadWriteStream

=============== Diff against KernelTests-nice.245 ===============

Item was changed:
  ----- Method: CompiledMethodTest>>testDecompile (in category 'tests - decompiling') -----
  testDecompile
  	"self debug: #testDecompileTree"
  	| method  cls stream |
  
  	Smalltalk removeClassNamed: #TUTU.
  
  	cls := Object subclass: #TUTU
  		instanceVariableNames: ''
  		classVariableNames: ''
  		poolDictionaries: ''
  		category: 'KernelTests-Methods'.
  	cls compile: 'foo ^ 10'.
  	method := cls >> #foo.
  	Smalltalk removeClassNamed: #TUTU.
+ 	stream := String new writeStream.
- 	stream := ReadWriteStream on: String new.
  	method decompile printOn: stream.
  	self assert: stream contents = 'foo
  	^ 10'
  	
  	
  	!



More information about the Packages mailing list