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

Method test_sort_repr

tests/test_z3_ported.py:1924–1929  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1922 assert BitVecSort(8) != BitVecSort(16)
1923
1924 def test_sort_repr(self):
1925 assert repr(IntSort()) == "Int"
1926 assert repr(BoolSort()) == "Prop" # Lean uses Prop for Bool
1927 assert repr(NatSort()) == "Nat"
1928 assert repr(RealSort()) == "Real"
1929 assert repr(StringSort()) == "String"
1930
1931 def test_bv_sort_repr(self):
1932 assert "8" in repr(BitVecSort(8))

Callers

nothing calls this directly

Calls 5

IntSortFunction · 0.90
BoolSortFunction · 0.90
NatSortFunction · 0.90
RealSortFunction · 0.90
StringSortFunction · 0.90

Tested by

no test coverage detected