The Trunk: Tests-ct.412.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Tests-ct.412.mcz

commits-2
Marcel Taeumel uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-ct.412.mcz

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

Name: Tests-ct.412
Author: ct
Time: 30 June 2019, 2:11:26.54843 pm
UUID: 24e0c844-757d-1246-a348-a0372f66d993
Ancestors: Tests-pre.411

Add tests for SyntaxErrorNotification>>#resume:

=============== Diff against Tests-pre.411 ===============

Item was added:
+ ----- Method: CompilerSyntaxErrorNotifyingTest>>testResumeEarlySyntaxError (in category 'tests') -----
+ testResumeEarlySyntaxError
+
+ | result |
+ result := [Compiler evaluate: '''''''']
+ on: SyntaxErrorNotification
+ do: [:ex | ex resume: ''''''''''].
+ self assert: '''' equals: result!

Item was added:
+ ----- Method: CompilerSyntaxErrorNotifyingTest>>testResumeLateSyntaxError (in category 'tests') -----
+ testResumeLateSyntaxError
+
+ | result |
+ result := [Compiler evaluate: '6*:7']
+ on: SyntaxErrorNotification
+ do: [:ex | ex resume: '6*7'].
+ self assert: 42 equals: result!