@@ -114,6 +114,9 @@ void main() {
114
114
Position (offset: 1 , line: 1 , column: 2 )),
115
115
value: '0' ));
116
116
117
+ expect (() => lexOne ('01' ), throwsA (const TypeMatcher <SyntaxException >()));
118
+ expect (() => lexOne ('01.23' ), throwsA (const TypeMatcher <SyntaxException >()));
119
+
117
120
expect (
118
121
lexOne ('52321' ),
119
122
const Token (
@@ -212,7 +215,10 @@ void main() {
212
215
() => lexOne ('2e++32' ), throwsA (const TypeMatcher <SyntaxException >()));
213
216
expect (() => lexOne ('2.' ), throwsA (const TypeMatcher <SyntaxException >()));
214
217
expect (() => lexOne ('.1' ), throwsA (const TypeMatcher <SyntaxException >()));
215
- expect (() => lexOne ('1.F' ), throwsA (const TypeMatcher <SyntaxException >()));
218
+ expect (() => lexOne ('1.E' ), throwsA (const TypeMatcher <SyntaxException >()));
219
+ expect (() => lexOne ('1.2e3e' ), throwsA (const TypeMatcher <SyntaxException >()));
220
+ expect (() => lexOne ('1.2e3.4' ), throwsA (const TypeMatcher <SyntaxException >()));
221
+ expect (() => lexOne ('1.23.4' ), throwsA (const TypeMatcher <SyntaxException >()));
216
222
});
217
223
218
224
group ('String' , () {
@@ -240,6 +246,11 @@ void main() {
240
246
Spanning (Position (offset: 0 , line: 1 , column: 1 ),
241
247
Position (offset: 14 , line: 1 , column: 15 )),
242
248
value: ' with space ' ));
249
+
250
+ expect (
251
+ () => lexOne ('"""' ), throwsA (const TypeMatcher <SyntaxException >()));
252
+ expect (
253
+ () => lexOne ('""""' ), throwsA (const TypeMatcher <SyntaxException >()));
243
254
});
244
255
245
256
test ('lexes escape sequence' , () {
@@ -345,7 +356,8 @@ void main() {
345
356
'1| query {\n '
346
357
'2| user(username: "\\ u123") {\n '
347
358
' ^^^^^\n '
348
- '3| firstName,\n\n ' )), skip: true );
359
+ '3| firstName,\n\n ' )),
360
+ skip: true );
349
361
});
350
362
351
363
test ('throws on invalid source characters' , () {
0 commit comments