Closed Trenly closed 1 day ago
[Policy] Issue Bug
I've linked my branch that I've used for testing. The only test that is currently failing is the one mentioned in the initial comment.
Edit:
When a version is created, all trailing zeroes are trimmed off. This means that
22.0.0
, when broken into parts, is actually stored as[22]
and not as[22, 0, 0]
. This means that it's hitting the condition wherei >= other.m_parts.size()
and is just breaking the for loop instead of actually trying to pad with zeroes when comparingEdit: Confirmed by removing the trimming, which caused the sorting to be correct. This isn’t a real fix though. . .
Brief description of your issue
See the discussion -
TL;DR