| Index: pkg/front_end/test/scanner_roundtrip_test.dart
|
| diff --git a/pkg/front_end/test/scanner_roundtrip_test.dart b/pkg/front_end/test/scanner_roundtrip_test.dart
|
| index 0b27e6b80ee71525adeab77915b8237a05f754b8..1bfc78fbbddec202cdc6d0d4bb5a02de8376e37e 100644
|
| --- a/pkg/front_end/test/scanner_roundtrip_test.dart
|
| +++ b/pkg/front_end/test/scanner_roundtrip_test.dart
|
| @@ -263,4 +263,14 @@ class ScannerTest_RoundTrip extends ScannerTest {
|
| assertIsOperator(tt.lexeme, operatorTokenTypes.contains(tt));
|
| }
|
| }
|
| +
|
| + void test_precedence() {
|
| + for (TokenType tt in allTokenTypes) {
|
| + for (PrecedenceInfo info in PrecedenceInfo.all) {
|
| + if (info.value == tt.lexeme || info.value == tt.name.toLowerCase()) {
|
| + expect(tt.precedence, info.precedence, reason: tt.name);
|
| + }
|
| + }
|
| + }
|
| + }
|
| }
|
|
|