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

Method test_patma_205

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

Source from the content-addressed store, hash-verified

2184 self.assertIs(f("42"), None)
2185
2186 def test_patma_205(self):
2187 def f(w):
2188 match w:
2189 case 42.0:
2190 out = locals()
2191 del out["w"]
2192 return out
2193 self.assertEqual(f(42.0), {})
2194 self.assertEqual(f(42), {})
2195 self.assertIs(f(0.0), None)
2196 self.assertIs(f(0), None)
2197
2198 def test_patma_206(self):
2199 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