-
Notifications
You must be signed in to change notification settings - Fork 18
Add test for src/evaluators/source-4-3.js #24
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
Add test for src/evaluators/source-4-3.js #24
Conversation
| @@ -0,0 +1,2 @@ | |||
| parse_and_run('function a(){const b = 2; return b;} a();'); | |||
| // 2 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.
| ' : factorial(n - 1) * n;\n' + | ||
| '}' + | ||
| 'factorial(4);'); | ||
| // 24 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.
same
| ' a = 2;\n' + | ||
| '}\n' + | ||
| 'x();'); | ||
| // 1 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.
same
| return result; | ||
| } | ||
| print_one_line_list(result); | ||
| // 'baker1,cooper4,fletcher2,miller3,smith5,' 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.
same
| return 5;\ | ||
| }\ | ||
| foo();"); | ||
| // 5 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.
same

No description provided.