FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Test case demonstrating bug: empty string equals zero by aaronkavlie-wf · Pull Request #1101 · HubSpot/jinjava · GitHub

Test case demonstrating bug: empty string equals zero - #1101

Open
aaronkavlie-wf wants to merge 1 commit into
HubSpot:masterfrom
aaronkavlie-wf:string_zero_equality
Open

Test case demonstrating bug: empty string equals zero#1101
aaronkavlie-wf wants to merge 1 commit into
HubSpot:masterfrom
aaronkavlie-wf:string_zero_equality

Conversation

Copy link
Copy Markdown

I ran into some unexpected template behavior recently with some date comparison logic.
We have to convert null values to empty strings (due to a Jinjava issue removing keys with null values).

Comparing the empty string to 0 evaluates to true. The expected result is false, as they are different types.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL