MCPcopy Create free account
hub / github.com/expr-lang/expr / TestOptimize_in_range_with_floats

Function TestOptimize_in_range_with_floats

optimizer/optimizer_test.go:149–153  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

147}
148
149func TestOptimize_in_range_with_floats(t *testing.T) {
150 out, err := expr.Eval(`f in 1..3`, map[string]any{"f": 1.5})
151 require.NoError(t, err)
152 assert.Equal(t, false, out)
153}
154
155func TestOptimize_const_expr(t *testing.T) {
156 tree, err := parser.Parse(`toUpper("hello")`)

Callers

nothing calls this directly

Calls 3

EvalFunction · 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…