MCPcopy Index your code
hub / github.com/python/cpython / f

Method f

Lib/test/test_patma.py:2070–2077  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

2068 GREEN = 1
2069 BLUE = 2
2070 def f(color):
2071 match color:
2072 case Color.RED:
2073 return "I see red!"
2074 case Color.GREEN:
2075 return "Grass is green"
2076 case Color.BLUE:
2077 return "I'm feeling the blues :("
2078 self.assertEqual(f(Color.RED), "I see red!")
2079 self.assertEqual(f(Color.GREEN), "Grass is green")
2080 self.assertEqual(f(Color.BLUE), "I'm feeling the blues :(")

Callers 1

test_patma_249Method · 0.45

Calls 1

PointClass · 0.70

Tested by

no test coverage detected