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

Method test_continuation

Lib/test/test_tokenize.py:2150–2161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2148
2149
2150 def test_continuation(self):
2151 # Balancing continuation
2152 self.check_roundtrip("a = (3,4, \n"
2153 "5,6)\n"
2154 "y = [3, 4,\n"
2155 "5]\n"
2156 "z = {'a': 5,\n"
2157 "'b':15, 'c':True}\n"
2158 "x = len(y) + 5 - a[\n"
2159 "3] - a[2]\n"
2160 "+ len(z) - z[\n"
2161 "'b']\n")
2162
2163 def test_backslash_continuation(self):
2164 # Backslash means line continuation, except for comments

Callers

nothing calls this directly

Calls 1

check_roundtripMethod · 0.95

Tested by

no test coverage detected