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

test(VisitorPartialEvaluator): add tests for VisitorPartialEvaluator #939

Merged
merged 1 commit into from
Nov 9, 2016

Conversation

monperrus
Copy link
Collaborator

No description provided.

CtCodeElement el = launcher.getFactory().Code().createCodeSnippetStatement("if (false) {System.out.println(\"foo\");} else {System.out.println(\"bar\");} ").compile();
VisitorPartialEvaluator eval = new VisitorPartialEvaluator();
CtElement elnew = eval.evaluate(null, el);
assertEquals("{\n" +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"\n" does not work on Windows

@monperrus monperrus force-pushed the test-VisitorPartialEvaluator branch from 7b5b48b to 111b445 Compare November 7, 2016 16:33
@tdurieux tdurieux merged commit dde43c9 into INRIA:master Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants