]> Cypherpunks repositories - gostls13.git/commitdiff
test: follow got/want convention in uintptrescapes test
authorjjpinto <jorgpinto@gmail.com>
Fri, 26 Dec 2025 14:57:02 +0000 (14:57 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 29 Dec 2025 19:21:12 +0000 (11:21 -0800)
Standardize the output messages in uintptrescapes.dir/main.go

Change-Id: I7965bb9829c7b55ac03cb8b46b333e6b65acf755
GitHub-Last-Rev: d254e0e30eac3a54bff4581f75a01587be029b15
GitHub-Pull-Request: golang/go#77000
Reviewed-on: https://go-review.googlesource.com/c/go/+/732761
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

test/uintptrescapes.dir/main.go

index afda6218adb6cbf85f49a69950f9a7c07c55f459..0ccb18f9ffa9e9fbc62299918ad794994786aa5a 100644 (file)
@@ -49,7 +49,7 @@ func main() {
                defer wg.Done()
                b := F1()
                if b != 42 {
-                       fmt.Printf("F1: got %d, expected 42\n", b)
+                       fmt.Printf("F1: got %d, want 42\n", b)
                        c <- false
                }
        }()
@@ -58,7 +58,7 @@ func main() {
                defer wg.Done()
                b := F2()
                if b != 42 {
-                       fmt.Printf("F2: got %d, expected 42\n", b)
+                       fmt.Printf("F2: got %d, want 42\n", b)
                        c <- false
                }
        }()
@@ -67,7 +67,7 @@ func main() {
                defer wg.Done()
                b := M1()
                if b != 42 {
-                       fmt.Printf("M1: got %d, expected 42\n", b)
+                       fmt.Printf("M1: got %d, want 42\n", b)
                        c <- false
                }
        }()
@@ -76,7 +76,7 @@ func main() {
                defer wg.Done()
                b := M2()
                if b != 42 {
-                       fmt.Printf("M2: got %d, expected 42\n", b)
+                       fmt.Printf("M2: got %d, want 42\n", b)
                        c <- false
                }
        }()