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

Method test_seq_length

tests/test_z3_compat.py:2083–2089  ·  view source on GitHub ↗

Length works on SeqRef.

(self)

Source from the content-addressed store, hash-verified

2081 assert isinstance(s3, SeqRef)
2082
2083 def test_seq_length(self):
2084 """Length works on SeqRef."""
2085 from lean_py.z3.core import ArithRef
2086
2087 s = Unit(IntVal(42))
2088 length = Length(s)
2089 assert isinstance(length, ArithRef)
2090
2091 def test_seq_contains(self):
2092 """Contains works on SeqRef."""

Callers

nothing calls this directly

Calls 3

UnitFunction · 0.90
IntValFunction · 0.90
LengthFunction · 0.90

Tested by

no test coverage detected