]> Cypherpunks repositories - gostls13.git/commit
test: add extra typeswitch tests that cause duplicate cases
authorDan Scales <danscales@google.com>
Tue, 7 Dec 2021 23:59:22 +0000 (15:59 -0800)
committerDan Scales <danscales@google.com>
Wed, 8 Dec 2021 17:55:13 +0000 (17:55 +0000)
commitc1c303f6f8b77d3ed4e135583f3d60b159907245
tree462adec2676ab65ffd9dc3437e8d274bebae9f97
parent85a8e1786a669efe525fd4555edb77a60bac2ffe
test: add extra typeswitch tests that cause duplicate cases

Augmented some of the typeswitch*.go tests so that some instantiations
have duplicate cases, in order to ensure we're testing that.

Spacing changes in the tests are due to gofmt.

Change-Id: I5d3678813505c520c544281d4ac8a62ce7e236ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/370155
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
test/run.go
test/typeparam/typeswitch1.go
test/typeparam/typeswitch1.out
test/typeparam/typeswitch2.go
test/typeparam/typeswitch2.out
test/typeparam/typeswitch3.go
test/typeparam/typeswitch3.out
test/typeparam/typeswitch4.go
test/typeparam/typeswitch4.out