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

Method test_patma_204

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

Source from the content-addressed store, hash-verified

2172 self.assertEqual(z, 0)
2173
2174 def test_patma_204(self):
2175 def f(w):
2176 match w:
2177 case 42:
2178 out = locals()
2179 del out["w"]
2180 return out
2181 self.assertEqual(f(42), {})
2182 self.assertIs(f(0), None)
2183 self.assertEqual(f(42.0), {})
2184 self.assertIs(f("42"), None)
2185
2186 def test_patma_205(self):
2187 def f(w):

Callers

nothing calls this directly

Calls 3

fFunction · 0.70
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected