diff --git a/src/preprocessor/preprocessor.test.ts b/src/preprocessor/preprocessor.test.ts index 0ddc16a..8e74dbb 100644 --- a/src/preprocessor/preprocessor.test.ts +++ b/src/preprocessor/preprocessor.test.ts @@ -335,17 +335,17 @@ foo`); test(`function macro where source variable is same as macro argument`, () => { const program = ` -#define GE(x, y) x + y -GE(y, x); -GE(y.y, x.x); -GE(yy, xx); +#define FN(x, y) x + y +FN(y, x); +FN(y.y, x.x); +FN(yy, xx); `; const ast = parse(program); preprocessAst(ast); - // Ensure that if the argument passed to the fn GE(X) has the - // same name as the macro definition #define GE(X), it doesn't get expanded + // Ensure that if the argument passed to the fn FN(X) has the + // same name as the macro definition #define FN(X), it doesn't get expanded // https://github.com/ShaderFrog/glsl-parser/issues/31 expect(generate(ast)).toBe(` y + x;