diff options
| author | jjpinto <jorgpinto@gmail.com> | 2025-12-29 19:39:04 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-12-29 12:17:32 -0800 |
| commit | b3ed0627ce2476d438711e8fceafb39f3bd14b4e (patch) | |
| tree | 413ae77f3e6d372fe512a631b0c1b444da54d076 | |
| parent | 3dcb48d2982e064ac8b5be01fe6847133fe56b88 (diff) | |
| download | go-b3ed0627ce2476d438711e8fceafb39f3bd14b4e.tar.xz | |
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
| -rw-r--r-- | test/cmplxdivide.go | 2 | ||||
| -rw-r--r-- | 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 { |
