MCPcopy Index your code
hub / github.com/python/cpython / test_trans

Method test_trans

Lib/idlelib/idle_test/test_pyparse.py:17–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15 self.assertEqual(mapping[1000], ord('x'))
16
17 def test_trans(self):
18 # trans is the production instance of ParseMap, used in _study1
19 parser = pyparse.Parser(4, 4)
20 self.assertEqual('\t a([{b}])b"c\'d\n'.translate(pyparse.trans),
21 'xxx(((x)))x"x\'x\n')
22
23
24class PyParseTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
translateMethod · 0.45

Tested by

no test coverage detected