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

ability to compare version with x.y.z format #83

Merged
merged 1 commit into from
Apr 26, 2022
Merged

Conversation

Dragos0000
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Apr 25, 2022

Codecov Report

Merging #83 (4cb51f1) into main (2eaf80d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #83   +/-   ##
=======================================
  Coverage   99.06%   99.07%           
=======================================
  Files          59       59           
  Lines        2362     2366    +4     
=======================================
+ Hits         2340     2344    +4     
  Misses         22       22           
Impacted Files Coverage Δ
.../notice_eligibility/services/notice_eligibility.py 97.61% <100.00%> (+0.25%) ⬆️

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 bd22467...4cb51f1. Read the comment docs.

Copy link
Collaborator

@costezki costezki left a comment

Choose a reason for hiding this comment

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

that will do , but tests are failing :))

"""
version_numbers = [int(x) for x in version_string.split(".")]
assert len(version_numbers) == 3
return ((version_numbers[0] * 100) + version_numbers[1]) * 100 + version_numbers[2]
Copy link
Collaborator

Choose a reason for hiding this comment

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

:))))))))))))

That would work

Copy link
Collaborator

Choose a reason for hiding this comment

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

If you would go into [0,1] space you could easily handle 1,2,3,4... digit version numbers.
The same is valid for negative number space.

@Dragos0000 Dragos0000 merged commit 6c83f81 into main Apr 26, 2022
@Dragos0000 Dragos0000 deleted the feature/TED-297 branch April 26, 2022 11:24
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