From 9f92a4728ef0719673ddbdc5fcece2139904c4f2 Mon Sep 17 00:00:00 2001 From: Alex Chan Date: Wed, 24 Jun 2026 16:49:25 +0100 Subject: [PATCH] util/cmpver: add a test for comparing three-digit versions No code changes needed; this is to rule out cmpver as the source of any version-comparison issues. Updates #20238 Change-Id: Ib8765dd042e994549d9e2c03859a5f769a856704 Signed-off-by: Alex Chan --- util/cmpver/version_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/cmpver/version_test.go b/util/cmpver/version_test.go index b3ab1b028..8f13fabf6 100644 --- a/util/cmpver/version_test.go +++ b/util/cmpver/version_test.go @@ -91,6 +91,12 @@ func TestCompare(t *testing.T) { v2: "0.96-105", want: 1, }, + { + name: "tailscale-three-digits", + v1: "1.100.2", + v2: "1.55.0", + want: 1, + }, { // Though ۱ and ۲ both satisfy unicode.IsNumber, our previous use // of strconv.ParseUint with these characters would have lead us to