MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / line

Function line

__tests__/pascal-conditional-blocks.test.ts:360–360  ·  view source on GitHub ↗
(code: string, n: number)

Source from the content-addressed store, hash-verified

358
359 it('blanks only the begin of the branch that is not kept', () => {
360 const line = (code: string, n: number) => preParsePascal(code).split('\n')[n - 1];
361 // The case and the try stay; the begin beside each goes.
362 expect(line(CASE_OR_BEGIN, 22)).toBe(' case Ctxt.Reg[Arg] of');
363 expect(line(CASE_OR_BEGIN, 37)).toBe(' ');

Calls 1

preParsePascalFunction · 0.90

Tested by

no test coverage detected