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

review: test SubstitionVisitor array access literal #1390

Merged
merged 2 commits into from
Jun 12, 2017

Conversation

pvojtechovsky
Copy link
Collaborator

No description provided.

@pvojtechovsky pvojtechovsky changed the title test SubstitionVisitor array access literal review: test SubstitionVisitor array access literal Jun 10, 2017

@Test
public void testArrayAccess() throws Exception {
//contract: the template engine supports array access substitution
Copy link
Collaborator

Choose a reason for hiding this comment

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

// contract: the template engine supports variable access substitution.

to me this is not an array access, but more a normal variable access, typed as Array.

an array access would be "array.S()[0]"

that said the test is good,

@monperrus monperrus merged commit 42cf54e into INRIA:master Jun 12, 2017
@monperrus
Copy link
Collaborator

I love PR with tests :-)

@pvojtechovsky pvojtechovsky deleted the testTmplArrayAccess branch June 12, 2017 18:54
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