From b3ed0627ce2476d438711e8fceafb39f3bd14b4e Mon Sep 17 00:00:00 2001 From: jjpinto Date: Mon, 29 Dec 2025 19:39:04 +0000 Subject: [PATCH] tests: improve consistency and clarity of test diagnostics Minor updates to test diagnostics for consistency and readability: - Corrected an incorrect identifier - Standardized float formatting No behavior changes. Change-Id: I3d3633a7cc487209341ea92101f8c67848212080 GitHub-Last-Rev: b2822e846a91ce2563445f90f8d5768662a9babf GitHub-Pull-Request: golang/go#77001 Reviewed-on: https://go-review.googlesource.com/c/go/+/732762 LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui Reviewed-by: Keith Randall Auto-Submit: Keith Randall Reviewed-by: Keith Randall --- test/cmplxdivide.go | 2 +- test/map.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cmplxdivide.go b/test/cmplxdivide.go index 49cd5bf582..4b8d549fc4 100644 --- a/test/cmplxdivide.go +++ b/test/cmplxdivide.go @@ -35,7 +35,7 @@ func main() { fmt.Printf("BUG\n") bad = true } - fmt.Printf("%v/%v: expected %v error; got %v\n", t.f, t.g, t.out, x) + fmt.Printf("%v/%v: got %v, want %v\n", t.f, t.g, x, t.out) } } if bad { diff --git a/test/map.go b/test/map.go index 2c1cf8a140..b72fe59bd7 100644 --- a/test/map.go +++ b/test/map.go @@ -431,7 +431,7 @@ func testbasic() { { _, b := mpTi[apT[i]] if b { - panic(fmt.Sprintf("tuple nonexistence decl: mpTi[apt[%d]]", i)) + panic(fmt.Sprintf("tuple nonexistence decl: mpTi[apT[%d]]", i)) } _, b = mpTi[apT[i]] if b { -- 2.52.0