From e0493e0cac5775f98d5f1b095875200fe2d02ebf Mon Sep 17 00:00:00 2001 From: wilyJ80 Date: Mon, 9 Dec 2024 13:20:19 +0000 Subject: [PATCH] test: multiple protos work fine, more integrations later --- test/parser_integration_tests.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/parser_integration_tests.c b/test/parser_integration_tests.c index 60b644d..1916cd1 100644 --- a/test/parser_integration_tests.c +++ b/test/parser_integration_tests.c @@ -521,7 +521,7 @@ void declDefProcProtoNoParenClose() { } void declDefProcProtoTwoProts() { - const char *mock_data = "prot j(int) prot k(char(\n"; + const char *mock_data = "prot j(int) prot k(2(\n"; FILE *mock_file = fmemopen((void*)mock_data, strlen(mock_data), "r"); @@ -540,6 +540,5 @@ void declDefProcProtoTwoProts() { }; enum SYNTAX_ERROR error = prog(&parser); - printSyntaxError(error, parser.lineCount); - assert(error == NO_ERROR); + assert(error == INVALID_PROTO_PARAM_TYPE); }