File tests using text file
aidanoconnor opened this issue · comments
aidanoconnor commented
The test for calculating the hash for a file should use a binary file, not the text file, test.key.
Git may do translation of line endings in text files during cloning, which causes the test to fail.
The issue can be resolved by configuring Git, but it may not be obvious why the test is failing.
Files:
tests/file_test.c
tests/test.key