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

Method test_patma_208

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

Source from the content-addressed store, hash-verified

2225 self.assertEqual(f([1, 2.0]), {})
2226
2227 def test_patma_208(self):
2228 def f(w):
2229 match w:
2230 case x:
2231 out = locals()
2232 del out["w"]
2233 return out
2234 self.assertEqual(f(42), {"x": 42})
2235 self.assertEqual(f((1, 2)), {"x": (1, 2)})
2236 self.assertEqual(f(None), {"x": None})
2237
2238 def test_patma_209(self):
2239 def f(w):

Callers

nothing calls this directly

Calls 2

fFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected