Skip to content

Commit f65db14

Browse files
committed
Update test-cache matching code for newline
In the test-cache code, the matching code for the "FREE" instruction has been updated to correctly account for newline characters in the input files used for testing.
1 parent afcde95 commit f65db14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/cache/test-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int main(int argc, char *argv[])
6161
cache = cache_create(8);
6262
assert(cache);
6363
printf("NEW CACHE\n");
64-
} else if (!strcmp(arr[0], "FREE")) {
64+
} else if (!strcmp(arr[0], "FREE\n")) {
6565
cache_free(cache, free);
6666
printf("FREE CACHE\n");
6767
}

0 commit comments

Comments
 (0)