Patrick Rein uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-pre.436.mcz==================== Summary ====================
Name: Tests-pre.436
Author: pre
Time: 20 August 2020, 10:20:39.808828 am
UUID: 19d0bec2-5710-1a42-9dda-8bb0cadbf1b0
Ancestors: Tests-mt.435
Adds regression tests for a parser issue with pragma parsing matching a string or symbol literal with an angle bracket as an opening pragma bracket and correspondingly a closing string or symbol literal as a closing pragma.
=============== Diff against Tests-mt.435 ===============
Item was added:
+ TestCase subclass: #ParserTest
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'Tests-Compiler'!
Item was added:
+ ----- Method: ParserTest>>testRegressionPragmasParsing (in category 'tests - pragmas') -----
+ testRegressionPragmasParsing
+
+ self
+ shouldnt: [Parser new
+ parse: 'methodHeader
+ <first>'
+ class: ParserTest]
+ raise: SyntaxErrorNotification!
Item was added:
+ ----- Method: ParserTest>>testRegressionPragmasParsingClosingToken (in category 'tests - pragmas') -----
+ testRegressionPragmasParsingClosingToken
+
+ self
+ should: [Parser new
+ parse: 'methodHeader
+ <first''>'''
+ class: ParserTest]
+ raise: SyntaxErrorNotification!
Item was added:
+ ----- Method: ParserTest>>testRegressionPragmasParsingIsTooPossessive (in category 'tests - pragmas') -----
+ testRegressionPragmasParsingIsTooPossessive
+ "The parser might interpret angle bracket literals as opening pragmas"
+
+ self
+ shouldnt: [Parser new
+ parse: 'methodHeader
+ ''<'' asciiValue'
+ class: ParserTest]
+ raise: SyntaxErrorNotification.
+
+ self
+ shouldnt: [Parser new
+ parse: 'methodHeader
+ #< asciiValue'
+ class: ParserTest]
+ raise: SyntaxErrorNotification.
+
+ self
+ shouldnt: [Parser new
+ parse: 'methodHeader
+ $< asciiValue'
+ class: ParserTest]
+ raise: SyntaxErrorNotification!