summaryrefslogtreecommitdiff
path: root/tests/array_r.l
diff options
context:
space:
mode:
authorDemi Obenour <demiobenour@gmail.com>2016-09-27 10:54:16 -0400
committerWill Estes <westes575@gmail.com>2016-10-05 19:25:56 -0400
commit9d3ddf572e3744e4cf5e9788b676f423fe69aee8 (patch)
tree1a9ae51e2be904714c0afdae5dbad00c81ccf300 /tests/array_r.l
parent735ffb6a653552831321acaa0e7d0a834a210a84 (diff)
Fix M4 quoting of section 3.
This fixes M4 quoting of section 3 of the input file, including escape sequences and character constants. Tests were added to verify the behavior in section 3 with respect to quoting. Both escaping of quotes and quoting of potential macro-start characters are tested. Existing tests were also fixed to account for the new -- and now correct -- behavior. Many tests relied on the old behavior of expanding M4 macros in section 3. They needed to be updated for the new behavior.
Diffstat (limited to 'tests/array_r.l')
-rw-r--r--tests/array_r.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/array_r.l b/tests/array_r.l
index 68a6299..e038f7c 100644
--- a/tests/array_r.l
+++ b/tests/array_r.l
@@ -49,13 +49,13 @@ main (void)
{
yyscan_t lexer;
- yylex_init(&lexer);
- yyset_in(stdin, lexer);
- yyset_out(stdout, lexer);
+ testlex_init(&lexer);
+ testset_in(stdin, lexer);
+ testset_out(stdout, lexer);
- yylex( lexer );
+ testlex( lexer );
- yylex_destroy( lexer);
+ testlex_destroy( lexer);
printf("TEST RETURNING OK.\n");
return 0;