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

Deepen equalto expression test comparison. #211

Merged
merged 3 commits into from
Jul 18, 2018
Merged

Conversation

mattcoley
Copy link
Collaborator

Let's say you have a string TEST and an enum TEST. Under the usual == operation the expression evaluater will convert the enum to a string for comparison using BooleanOperations. This mimics this behavior in equalto expression test so there is no distinction between them.

@mattcoley mattcoley requested a review from boulter July 17, 2018 21:02
@codecov-io
Copy link

Codecov Report

Merging #211 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #211   +/-   ##
=========================================
  Coverage     71.36%   71.36%           
  Complexity     1353     1353           
=========================================
  Files           215      215           
  Lines          4282     4282           
  Branches        683      683           
=========================================
  Hits           3056     3056           
  Misses          985      985           
  Partials        241      241
Impacted Files Coverage Δ Complexity Δ
.../hubspot/jinjava/lib/exptest/IsEqualToExpTest.java 60% <100%> (ø) 3 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 97e4796...06757d7. Read the comment docs.

@mattcoley mattcoley changed the title Fix equalto expression test. Deepen equalto expression test comparison. Jul 17, 2018
Copy link
Contributor

@boulter boulter left a comment

Choose a reason for hiding this comment

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

Could you provide some test cases to show what was failing before?

@mattcoley
Copy link
Collaborator Author

Done for general type coercions. However can't test the exact case I wanted to fix since I can't define enums in Jinjava right now.

@mattcoley mattcoley merged commit 73ef789 into master Jul 18, 2018
@mattcoley mattcoley deleted the fix-equalto-exp-test branch July 18, 2018 13:37
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.

3 participants