MCPcopy
hub / github.com/expr-lang/expr / TestCheck_FloatVsInt

Function TestCheck_FloatVsInt

checker/checker_test.go:728–735  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

726}
727
728func 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
737func TestCheck_IntSums(t *testing.T) {
738 tree, err := parser.Parse(`Uint32 + Int32`)

Callers

nothing calls this directly

Calls 6

ParseFunction · 0.92
NoErrorFunction · 0.92
CheckFunction · 0.92
NewFunction · 0.92
NoErrorFunction · 0.92
EqualFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…