Skip to content

Commit

Permalink
test: add a case
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed Nov 15, 2024
1 parent 2c4b013 commit 445c9f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func TestEqual(t *testing.T) {
{Version{2, "7.4.052", "1ubuntu3"}, Version{2, "7.4.052", "1ubuntu3"}, true},
{Version{2, "7.4.052", "1ubuntu1"}, Version{2, "7.4.052", "1"}, false},
{Version{upstreamVersion: "7.4.052"}, Version{upstreamVersion: "7.4.052"}, true},
{Version{upstreamVersion: "3.12", debianRevision: "1+deb9u1build0.16.4.1"}, Version{upstreamVersion: "3.12", debianRevision: "1+deb9u1build0.16.04.1"}, true},
}
for _, tc := range cases {
actual := tc.v1.Equal(tc.v2)
Expand Down

0 comments on commit 445c9f8

Please sign in to comment.