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

Function test_nullary_equality

tests/test_pattern_match.py:184–189  ·  view source on GitHub ↗

Color.red == LeanInductiveValue("Color", "red", 0, ()).

(example_lib)

Source from the content-addressed store, hash-verified

182
183
184def test_nullary_equality(example_lib):
185 """Color.red == LeanInductiveValue("Color", "red", 0, ())."""
186 Color = example_lib.Color
187 val = LeanInductiveValue("Color", "red", 0, ())
188 assert Color.red == val
189 assert val == Color.red

Callers

nothing calls this directly

Calls 1

LeanInductiveValueClass · 0.90

Tested by

no test coverage detected