You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to PR #1 , I have a question on how I should proceed with a PR.
I added the following code to CompareVersions
//.... github=NormalizeVersionString(github);varcurrentValid=Version.TryParse(current,outvarcurrentVersion);vargithubValid=Version.TryParse(github,outvargithubVersion);boolvalidVersion=currentValid&&githubValid;if(validVersion&&cmpType!=CompareType.Boolean&&changeLevel<=VersionChange.Revision){returncurrentVersion<githubVersion;}else{// choose CompareType specific compare methodswitch(cmpType){caseCompareType.Incremental:returnCompareVersionsIncremental(current,github,changeLevel);// boolean is fallback, because it accepts the widest range of inputcaseCompareType.Boolean:default:returnCompareVersionsBoolean(current,github);}}
However, your test TestExceedLocalDepth() checks for a false value if the Version Change is Minor, but since my code change checks against the whole version, it returns true, causing the test to fail. Do you have any suggestions how I can modify the changes to make sure it passes the tests?
The text was updated successfully, but these errors were encountered:
What do you think about modifying NormalizeVersionString.
A new parameter VersionChange could cut off all unused decimals in the version, using some regex or similiar.
However this takes away some of the parsing capabilities of the Version class.
But I don't see another way of solving this, as this is an important behaviour (not updating in that test case)
Related to PR #1 , I have a question on how I should proceed with a PR.
I added the following code to
CompareVersions
However, your test
TestExceedLocalDepth()
checks for a false value if the Version Change is Minor, but since my code change checks against the whole version, it returnstrue
, causing the test to fail. Do you have any suggestions how I can modify the changes to make sure it passes the tests?The text was updated successfully, but these errors were encountered: