gotypes,tests: test case for issue #195 (#214)

Adds test cases for the bug in #195, similar to #212.

Updates #195
Updates #191
This commit is contained in:
Michael McLoughlin
2021-10-30 13:47:55 -07:00
committed by GitHub
parent 7de02518a2
commit 4f7179b08e
6 changed files with 43 additions and 1 deletions

View File

@@ -159,7 +159,8 @@ func TestSignatureSizes(t *testing.T) {
{"func(uint64) uint64", 16},
{"func([7]byte) byte", 9},
{"func(uint64, uint64) (uint64, uint64)", 32},
{"func(uint16)", 2},
{"func(uint16)", 2}, // issue #191
{"func(*uint64, uint32)", 12}, // issue #195
}
for _, c := range cases {
s, err := ParseSignature(c.Expr)