mirror of
https://github.com/golang/go
synced 2024-11-05 15:56:12 -07:00
9dc88fb721
In a certain case, stringer would generate the following check for an an unsigned integer i: "0 <= i". This changes stringer to not generate such a check. Also adds an additional test case for an unsigned multiple run that does not include zero. There was already a case ("unum") that included an unsigned multiple run starting at zero. This case's output was updated accordingly. Fixes golang/go#36461 Change-Id: I57e79384a0b802fa4571e2b3495db168b814bcaa Reviewed-on: https://go-review.googlesource.com/c/tools/+/214180 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> |
||
---|---|---|
.. | ||
testdata | ||
endtoend_test.go | ||
golden_test.go | ||
stringer.go | ||
util_test.go |