Eliot Miranda uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-eem.296.mcz ==================== Summary ==================== Name: Tests-eem.296 Author: eem Time: 19 May 2014, 12:13:39.122 pm UUID: e5218e7a-c04d-4739-b5fc-953bb2c06cb5 Ancestors: Tests-cwp.295 Eliminate obsolete long-form bytecode tests. =============== Diff against Tests-cwp.295 =============== Item was changed: ----- Method: ClosureCompilerTest>>testInjectIntoDecompilations (in category 'tests') ----- testInjectIntoDecompilations "Test various compilations decompile to the same code for a method sufficiently simple that this is possible and sufficiently complex that the code generated varies between the compilations." "self new testInjectIntoDecompilations" | source | source := (Collection sourceCodeAt: #inject:into:) asString. { Encoder. + EncoderForV3. + EncoderForV3PlusClosures } do: - EncoderForV3. EncoderForLongFormV3. - EncoderForV3PlusClosures. EncoderForLongFormV3PlusClosures } do: [:encoderClass| | method | method := (Parser new encoderClass: encoderClass; parse: source class: Collection) generate. self assert: (Scanner new scanTokens: method decompileString) = #(inject: t1 into: t2 | t3 | t3 ':=' t1 . self do: [ ':t4' | t3 ':=' t2 value: t3 value: t4 ] . ^ t3)]! Item was changed: ----- Method: ClosureCompilerTest>>testInjectIntoDecompiledDebugs (in category 'tests') ----- testInjectIntoDecompiledDebugs "Test various debugs of the decompiled form debug correctly." "self new testInjectIntoDecompiledDebugs" | source | source := (Collection sourceCodeAt: #inject:into:) asString. { Encoder. + EncoderForV3PlusClosures } do: - EncoderForV3PlusClosures. EncoderForLongFormV3PlusClosures } do: [:encoderClass| | method | method := (Parser new encoderClass: encoderClass; parse: source class: Collection) generate. self supportTestSourceRangeAccessForDecompiledInjectInto: method source: method decompileString]! Item was removed: - ----- Method: ClosureCompilerTest>>testSourceRangeAccessForBlueBookLongFormInjectInto (in category 'tests') ----- - testSourceRangeAccessForBlueBookLongFormInjectInto - "Test debugger source range selection for inject:into: for a version compiled with closures" - "self new testSourceRangeAccessForBlueBookLongFormInjectInto" - | source method | - source := (Collection sourceCodeAt: #inject:into:) asString. - method := (Parser new - encoderClass: EncoderForLongFormV3; - parse: source - class: Collection) - generate: (Collection compiledMethodAt: #inject:into:) trailer. - self supportTestSourceRangeAccessForInjectInto: method source: source! Item was removed: - ----- Method: ClosureCompilerTest>>testSourceRangeAccessForClosureLongFormBytecodeInjectInto (in category 'tests') ----- - testSourceRangeAccessForClosureLongFormBytecodeInjectInto - "Test debugger source range selection for inject:into: for a version compiled with closures" - "self new testSourceRangeAccessForClosureLongFormBytecodeInjectInto" - | source method | - source := (Collection sourceCodeAt: #inject:into:) asString. - method := (Parser new - encoderClass: EncoderForLongFormV3PlusClosures; - parse: source - class: Collection) - generate: (Collection compiledMethodAt: #inject:into:) trailer. - self supportTestSourceRangeAccessForInjectInto: method source: source! |
Free forum by Nabble | Edit this page |