The Inbox: Tests-tobe.445.mcz

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

The Inbox: Tests-tobe.445.mcz

commits-2
A new version of Tests was added to project The Inbox:
http://source.squeak.org/inbox/Tests-tobe.445.mcz

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

Name: Tests-tobe.445
Author: tobe
Time: 11 March 2021, 1:51:19.457627 pm
UUID: e5547bc0-8f7f-4880-b3bc-a18fdb625c3b
Ancestors: Tests-mt.444

Complements Compiler-tobe.455

=============== Diff against Tests-mt.444 ===============

Item was added:
+ ----- Method: ScannerTest>>testScanTokensRepeatingComment (in category 'tests') -----
+ testScanTokensRepeatingComment
+
+ | ranges |
+ ranges := Array streamContents: [:stream |
+ Scanner new scanTokenPositionsIn: '''packages''. "packages" 222' into: [:start :end | stream nextPut: (start to: end)]].
+
+ self assert: (ranges hasEqualElements: {1 to: 10. 11 to: 11. 13 to: 22. 24 to: 26. (27 to: 26)})!