MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / test_map_function_over_array

Method test_map_function_over_array

tests/test_z3_ported.py:969–974  ·  view source on GitHub ↗

Map(f, a) applies f element-wise.

(self)

Source from the content-addressed store, hash-verified

967 assert isinstance(lam._ast, LambdaNode)
968
969 def test_map_function_over_array(self):
970 """Map(f, a) applies f element-wise."""
971 f = Function("f", IntSort(), IntSort())
972 a = Array("a", IntSort(), IntSort())
973 result = Map(f, a)
974 assert is_array(result)
975
976 def test_as_array(self):
977 """AsArray(f) creates an array from a function."""

Callers

nothing calls this directly

Calls 5

FunctionFunction · 0.90
IntSortFunction · 0.90
ArrayFunction · 0.90
MapFunction · 0.90
is_arrayFunction · 0.90

Tested by

no test coverage detected