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

Function blank

__tests__/pascal-delphi-syntax.test.ts:429–429  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

427
428 it('writes the words it needs where the grammar reads them', () => {
429 const blank = (s: string) => s.replace(/[^\r\n]/g, ' ');
430 expect(preParsePascal(' 1: {$IFDEF U} A(1); {$ELSE} B(2); {$ENDIF}\n'))
431 .toBe(' 1: begin A(1); ; B(2); end; \n');
432 expect(preParsePascal(' Data: record X: Integer; end;\n')).toBe(` Data: string${blank(' X: Integer; end')};\n`);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected