Skip to content

Commit

Permalink
test: multiple protos work fine, more integrations later
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyJ80 committed Dec 9, 2024
1 parent 249dee0 commit e0493e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/parser_integration_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -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);
}

0 comments on commit e0493e0

Please sign in to comment.