Skip to content

- Prevent adding PyMap to itself; add unit tests#489

Merged
bszabo merged 2 commits into
masterfrom
no-self-referencing-in-my-map
Aug 25, 2020
Merged

- Prevent adding PyMap to itself; add unit tests#489
bszabo merged 2 commits into
masterfrom
no-self-referencing-in-my-map

Conversation

@bszabo

@bszabo bszabo commented Aug 24, 2020

Copy link
Copy Markdown
Contributor

No description provided.

- Prevent adding PyMap to itself; add unit tests
@bszabo bszabo requested a review from boulter August 24, 2020 19:41

@boulter boulter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have one comment, otherwise looks good. Thanks for adding all that test coverage.

RenderResult result = jinjava.renderForResult(
"{% set mymap = {} %} {% do mymap.put('map', mymap) %} {{ mymap }}",
Collections.emptyMap()
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this doesn't assert anything. What should it do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was using this test for debugging purposes and forgot to reinstate it to its proper form. Thanks for catching this.

@bszabo bszabo merged commit 7bf4586 into master Aug 25, 2020
@bszabo bszabo deleted the no-self-referencing-in-my-map branch August 25, 2020 15: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