-
Notifications
You must be signed in to change notification settings - Fork 686
Negative tests #2215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Negative tests #2215
Conversation
|
typo in the filename: |
tests/jerry/arguments-pharse.js
Outdated
| check_parse_error("f_args 1,2,3)"); | ||
| check_parse_error("f_args 1,2,3"); | ||
| check_parse_error("f_args 1;2;3"); | ||
| check_parse_error("f_args{1,2,3}"); No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a new line at the end of the file and use two spaces for indents
tests/jerry/arithmetic-parse.js
Outdated
| parse("a =% b"); | ||
|
|
||
| parse("c = a+"); | ||
| parse("c = a-"); No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
tests/jerry/for-in-parse.js
Outdated
| parse(forIn) | ||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too much new line here.
tests/jerry/for_parser.js
Outdated
| var doubleFor2 = | ||
| "for(i=0;i<5;i++) { "+ | ||
| " for(j=0;j<5;j++) { print('i: '+i+' j: '+j)"; | ||
| parse(doubleFor2) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
tests/jerry/if_parser.js
Outdated
| "if (false) print('if statement') " + | ||
| "else (false) print('else if statement') " + | ||
| "else print('else statement') " | ||
| test_parse_error(elseif3) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Added negative tests JerryScript-DCO-1.0-Signed-off-by: Balint Sipos siposb@inf.u-szeged.hu
LaszloLango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
zherczeg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
JerryScript-DCO-1.0-Signed-off-by: Balint Sipos siposb@inf.u-szeged.hu
Added negative tests
JerryScript-DCO-1.0-Signed-off-by: Balint Sipos siposb@inf.u-szeged.hu