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

Function TestIssue_nested_closures

expr_test.go:1831–1840  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1829}
1830
1831func TestIssue_nested_closures(t *testing.T) {
1832 code := `all(1..3, { all(1..3, { # > 0 }) and # > 0 })`
1833
1834 program, err := expr.Compile(code)
1835 require.NoError(t, err)
1836
1837 output, err := expr.Run(program, nil)
1838 require.NoError(t, err)
1839 require.True(t, output.(bool))
1840}
1841
1842func TestIssue138(t *testing.T) {
1843 env := map[string]any{}

Callers

nothing calls this directly

Calls 4

CompileFunction · 0.92
NoErrorFunction · 0.92
RunFunction · 0.92
TrueFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…