(t *testing.T)
| 735 | } |
| 736 | |
| 737 | func TestCheck_IntSums(t *testing.T) { |
| 738 | tree, err := parser.Parse(`Uint32 + Int32`) |
| 739 | require.NoError(t, err) |
| 740 | |
| 741 | typ, err := checker.Check(tree, conf.New(mock.Env{})) |
| 742 | assert.NoError(t, err) |
| 743 | assert.Equal(t, typ.Kind(), reflect.Int) |
| 744 | } |
| 745 | |
| 746 | func TestVisitor_ConstantNode(t *testing.T) { |
| 747 | tree, err := parser.Parse(`re("[a-z]")`) |