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

Method test_patma_207

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

Source from the content-addressed store, hash-verified

2211 self.assertIs(f("1"), None)
2212
2213 def test_patma_207(self):
2214 def f(w):
2215 match w:
2216 case [1, 2] | [3, 4]:
2217 out = locals()
2218 del out["w"]
2219 return out
2220 self.assertEqual(f([1, 2]), {})
2221 self.assertEqual(f([3, 4]), {})
2222 self.assertIs(f(42), None)
2223 self.assertIs(f([2, 3]), None)
2224 self.assertIs(f([1, 2, 3]), None)
2225 self.assertEqual(f([1, 2.0]), {})
2226
2227 def test_patma_208(self):
2228 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