(t *testing.T)
| 726 | } |
| 727 | |
| 728 | func TestCheck_FloatVsInt(t *testing.T) { |
| 729 | tree, err := parser.Parse(`Int + Float`) |
| 730 | require.NoError(t, err) |
| 731 | |
| 732 | typ, err := checker.Check(tree, conf.New(mock.Env{})) |
| 733 | assert.NoError(t, err) |
| 734 | assert.Equal(t, typ.Kind(), reflect.Float64) |
| 735 | } |
| 736 | |
| 737 | func TestCheck_IntSums(t *testing.T) { |
| 738 | tree, err := parser.Parse(`Uint32 + Int32`) |