Skip to content
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 eval order and side effects examples + bugfix #166

Merged
merged 6 commits into from Dec 14, 2018

Conversation

flip1995
Copy link
Contributor

@flip1995 flip1995 commented Dec 4, 2018

With the examples of the test our compiler is consistent with javac. I will continue to search for more exec order and side effect tests.

Currently only the tests from the slides are implemented.

If anyone has an idea for a test case feel free to add it.

@flip1995 flip1995 added help wanted Extra attention is needed S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author. labels Dec 4, 2018
@flip1995 flip1995 self-assigned this Dec 4, 2018
@flip1995
Copy link
Contributor Author

flip1995 commented Dec 5, 2018

I gone through the JLS "Evaluation Order" chapter and copied/generated tests from there. Didn't get to verify them yet. Will do tomorrow.

@flip1995 flip1995 force-pushed the phil/side_effects_fix branch 2 times, most recently from 0a36ad3 to 7b9df5a Compare December 6, 2018 10:40
@flip1995
Copy link
Contributor Author

flip1995 commented Dec 7, 2018

ETA Wednesday eve

Doesn't seem urgent to me. The optimizations shouldn't depend on this.

@reiner-dolp reiner-dolp mentioned this pull request Dec 10, 2018
42 tasks
@flip1995
Copy link
Contributor Author

Well that was a quick and easy fix 😄

r? @joshuabach

@flip1995 flip1995 added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author. help wanted Extra attention is needed labels Dec 12, 2018
@flip1995 flip1995 changed the title WIP: Add test for exec order and side effects examples Add test for eval order and side effects examples + bugfix Dec 12, 2018
@joshuabach
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Dec 14, 2018
166: Add test for eval order and side effects examples + bugfix r=joshuabach a=flip1995

With the examples of the test our compiler is consistent with javac. I will continue to search for more exec order and side effect tests.

Currently only the tests from the slides are implemented.

If anyone has an idea for a test case feel free to add it.

Co-authored-by: flip1995 <hello@philkrones.com>
@bors
Copy link
Contributor

bors bot commented Dec 14, 2018

Build succeeded

@bors bors bot merged commit d4d04c3 into master Dec 14, 2018
@joshuabach joshuabach deleted the phil/side_effects_fix branch December 14, 2018 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants