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

Method test_regexps

Lib/test/test_bytes.py:1391–1395  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1389 self.assertEqual(b, b'abc')
1390
1391 def test_regexps(self):
1392 def by(s):
1393 return bytearray(map(ord, s))
1394 b = by("Hello, world")
1395 self.assertEqual(re.findall(br"\w+", b), [by("Hello"), by("world")])
1396
1397 @unittest.expectedFailure # TODO: RUSTPYTHON
1398 def test_setitem(self):

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
findallMethod · 0.45

Tested by

no test coverage detected