Skip to content

Commit

Permalink
test(lh-89810): add more test
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhuwarrier committed Jan 27, 2025
1 parent 60f2782 commit 53f75bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/model/ftd/ftd_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ func TestFtdVersionComparison(t *testing.T) {
assert.False(t, versionTwo.Equal(versionOne))
},
},
{
testName: "Compare major.minor.patch versions semantically",
versionOneStr: "7.1.2",
versionTwoStr: "7.3.0",
assertFunc: func(t *testing.T, versionOne, versionTwo *ftd.Version) {
assert.True(t, versionOne.LessThan(versionTwo))
assert.True(t, versionTwo.GreaterThan(versionOne))
assert.False(t, versionTwo.Equal(versionOne))
},
},
{
testName: "Compare equal major.minor.patch versions",
versionOneStr: "7.2.0",
Expand Down

0 comments on commit 53f75bf

Please sign in to comment.