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

Method test_enum_constants

tests/test_z3_ported.py:3326–3330  ·  view source on GitHub ↗
(self, kernel)

Source from the content-addressed store, hash-verified

3324 assert Color.name() == "Color_e1"
3325
3326 def test_enum_constants(self, kernel):
3327 Color, (red, green, blue) = EnumSort("Color_e2", ["red", "green", "blue"])
3328 assert isinstance(red, ExprRef)
3329 assert isinstance(green, ExprRef)
3330 assert isinstance(blue, ExprRef)
3331
3332 def test_enum_distinct(self, kernel):
3333 Color, (red, green, blue) = EnumSort("Color_e3", ["red", "green", "blue"])

Callers

nothing calls this directly

Calls 1

EnumSortFunction · 0.90

Tested by

no test coverage detected