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

Method test_gather

Lib/test/test_peg_generator/test_c_parser.py:226–236  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

224 self.run_test(grammar_source, test_source)
225
226 def test_gather(self) -> None:
227 grammar_source = """
228 start: ';'.pass_stmt+ NEWLINE
229 pass_stmt: 'pass'
230 """
231 test_source = """
232 valid_cases = ["pass", "pass; pass"]
233 invalid_cases = ["pass;", "pass; pass;"]
234 self.check_input_strings_for_grammar(valid_cases, invalid_cases)
235 """
236 self.run_test(grammar_source, test_source)
237
238 def test_left_recursion(self) -> None:
239 grammar_source = """

Callers

nothing calls this directly

Calls 1

run_testMethod · 0.95

Tested by

no test coverage detected