MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_patma_212

Method test_patma_212

Lib/test/test_patma.py:2279–2286  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2277 self.assertIs(f(({"x": "x", "y": "y"})), None)
2278
2279 def test_patma_212(self):
2280 def f(w):
2281 match w:
2282 case Point(int(xx), y="hello"):
2283 out = locals()
2284 del out["w"]
2285 return out
2286 self.assertEqual(f(Point(42, "hello")), {"xx": 42})
2287
2288 def test_patma_213(self):
2289 def f(w):

Callers

nothing calls this directly

Calls 3

fFunction · 0.70
PointClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected