[squeak-dev] The Trunk: ToolsTests-mt.96.mcz

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Sat May 16 14:49:52 UTC 2020


> Maybe #compiledCode would be a better accessor for BlockClosure?


+1 :-)

#method is really confusing if we expect a CompiledBlock.


Best,

Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org>
Gesendet: Freitag, 15. Mai 2020 10:17:13
An: squeak-dev at lists.squeakfoundation.org; packages at lists.squeakfoundation.org
Betreff: [squeak-dev] The Trunk: ToolsTests-mt.96.mcz

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

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

Name: ToolsTests-mt.96
Author: mt
Time: 15 May 2020, 10:17:11.552447 am
UUID: 60cf49eb-5d79-5244-8b92-930d37256988
Ancestors: ToolsTests-mt.95

Fixes tests for CompiledCodeInspector.

Hmm... Maybe #compiledCode would be a better accessor for BlockClosure? Comparing with #sourceCode?

=============== Diff against ToolsTests-mt.95 ===============

Item was changed:
  ----- Method: CompiledCodeInspectorTest>>createObject (in category 'running') -----
  createObject
         "Note that we cannot return the block directly but require the indirection of #evaluate: because the resulting block will be modified during the tests. A block directly embedded in this #createObject method, however, would be re-used across test runs."

         InnerTestObject := super createObject.
         ^ Compiler new
+                evaluate: '[String withAll: #[67 97 114 112 101] "Carpe", #Squeak, InnerTestObject printString] method'
-                evaluate: '[String withAll: #[67 97 114 112 101] "Carpe", #Squeak, InnerTestObject printString] compiledBlock'
                 in: nil
                 to: self "Required for access to InnerTestObject"!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200516/57d65347/attachment.html>


More information about the Squeak-dev mailing list