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

Method test_enum_distinct

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

Source from the content-addressed store, hash-verified

3330 assert isinstance(blue, ExprRef)
3331
3332 def test_enum_distinct(self, kernel):
3333 Color, (red, green, blue) = EnumSort("Color_e3", ["red", "green", "blue"])
3334 # Constants should have different names
3335 assert repr(red) == "Color_e3.red"
3336 assert repr(green) == "Color_e3.green"
3337 assert repr(blue) == "Color_e3.blue"
3338
3339 def test_enum_sort_attribute_access(self, kernel):
3340 Color, consts = EnumSort("Color_e4", ["red", "green", "blue"])

Callers

nothing calls this directly

Calls 1

EnumSortFunction · 0.90

Tested by

no test coverage detected