TestUserdefExpr: pyVarTy

This commit is contained in:
xushiwei
2024-05-15 18:45:53 +08:00
parent 9e2b8b77c9
commit d07ffb36ad

View File

@@ -102,7 +102,9 @@ func TestCvtType(t *testing.T) {
func TestUserdefExpr(t *testing.T) {
b := &phisExprTy{}
c := &pyVarTy{}
_ = b.String()
_ = c.String()
test := func(a types.Type) {
defer func() {
if r := recover(); r == nil {
@@ -112,6 +114,7 @@ func TestUserdefExpr(t *testing.T) {
a.Underlying()
}
test(b)
test(c)
}
func TestAny(t *testing.T) {