(sourceGlsl: string)
| 25 | }; |
| 26 | |
| 27 | const expectParsedProgram = (sourceGlsl: string) => { |
| 28 | const ast = parse(sourceGlsl); |
| 29 | const glsl = generate(ast); |
| 30 | if (glsl !== sourceGlsl) { |
| 31 | debugAst(ast); |
| 32 | expect(glsl).toBe(sourceGlsl); |
| 33 | } |
| 34 | }; |
| 35 | |
| 36 | // test('pre test file', () => { |
| 37 | // expectParsedProgram(fileContents('./preprocess-test-grammar.glsl')); |
no test coverage detected