[squeak-dev] The Trunk: Tests-mt.491.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jun 15 07:27:33 UTC 2022


Marcel Taeumel uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-mt.491.mcz

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

Name: Tests-mt.491
Author: mt
Time: 15 June 2022, 9:27:31.627614 am
UUID: 1c0f98bd-8aba-ee42-b419-15e833e838ae
Ancestors: Tests-ct.490

Tests Decompiler fix in Compiler-mt.477.

=============== Diff against Tests-ct.490 ===============

Item was added:
+ ----- Method: DecompilerTests>>testDecompileCaseOfWithInnerLoop (in category 'tests') -----
+ testDecompileCaseOfWithInnerLoop
+ 
+ 	| sourceCode mn decompiledCode  |
+ 	sourceCode := '| x | ^ 1 caseOf: { [ 1 ] -> [ [ true ] whileTrue: [ x := 42 ] ] }'.
+ 	mn := self class newCompiler compileNoPattern: sourceCode in: self class notifying: nil ifFail: [self error: 'failed'].
+ 	decompiledCode := mn generateWithTempNames decompileWithTemps asString.
+ 	self assert: (
+ 		(Scanner new scanTokens: decompiledCode) endsWith:
+ 		(Scanner new scanTokens: sourceCode)).!



More information about the Squeak-dev mailing list