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

Method test_map_basic

tests/test_z3_compat.py:1571–1575  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1569 """Tests for Map/AsArray (gap #7)."""
1570
1571 def test_map_basic(self):
1572 f = Function("f", IntSort(), IntSort())
1573 a = Array("a", IntSort(), IntSort())
1574 result = Map(f, a)
1575 assert is_array(result)
1576
1577 def test_map_requires_array(self):
1578 f = Function("f", IntSort(), IntSort())

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