(t *testing.T)
| 652 | } |
| 653 | |
| 654 | func TestCheckTypeExpressions(t *testing.T) { |
| 655 | for _, tc := range checkerTypeExpressionTests { |
| 656 | tc := tc |
| 657 | t.Run(tc.name, func(t *testing.T) { |
| 658 | ast, err := checker.Check(tc.expr, 0, 0) |
| 659 | testutil.FatalIfErr(t, err) |
| 660 | |
| 661 | if !testutil.ExpectNoDiff(t, tc.expected, ast.Type().Root()) { |
| 662 | s := parser.Sexp{} |
| 663 | s.EmitTypes = true |
| 664 | t.Log("Typed AST:\n" + s.Dump(ast)) |
| 665 | } |
| 666 | }) |
| 667 | } |
| 668 | } |
nothing calls this directly
no test coverage detected