Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit 1eb03f1

Browse files
committed
Add test for some errors
1 parent daf160d commit 1eb03f1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

ifj2017/tests/66_errors/tests.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,26 @@
13721372
"BASE"
13731373
]
13741374
},
1375+
{
1376+
"info": "Lexical error",
1377+
"compiler_exit_code": 1,
1378+
"code": "scope \n print !\"\t\";\n end scope"
1379+
},
1380+
{
1381+
"info": "Lexical error",
1382+
"compiler_exit_code": 1,
1383+
"code": "scope \n print !\"\u0011\";\n end scope"
1384+
},
1385+
{
1386+
"info": "Lexical error",
1387+
"compiler_exit_code": 1,
1388+
"code": "scope \n print !\"\u0001\";\n end scope"
1389+
},
1390+
{
1391+
"info": "Lexical error",
1392+
"compiler_exit_code": 1,
1393+
"code": "scope \n print !\"\u0010\";\n end scope"
1394+
},
13751395
{
13761396
"info": "Return in scope in scope",
13771397
"compiler_exit_code": 2,
@@ -1385,6 +1405,11 @@
13851405
"compiler_exit_code": 2,
13861406
"code": "scope \n return 10 \n end scope"
13871407
},
1408+
{
1409+
"info": "Return in scope",
1410+
"compiler_exit_code": 2,
1411+
"code": "scope end scope"
1412+
},
13881413
{
13891414
"info": "Return in scope in if",
13901415
"compiler_exit_code": 2,

0 commit comments

Comments
 (0)