Filter missing watches before hashing

This commit is contained in:
Bryan Bennett 2024-08-17 09:36:21 -04:00
parent efa64a4734
commit 8627db86be
No known key found for this signature in database
GPG key ID: EE149E4215408DE9
4 changed files with 14 additions and 8 deletions

View file

@ -75,7 +75,7 @@ let test_hash_one = () => {
check_result_string(
"Hash matches",
Ok("6ead949bf4bcae230b9ed9cd11e578e34ce9f9ea"),
hash_files([|"spit_version.sh"|]),
hash_files(["spit_version.sh"]),
);
};
@ -83,7 +83,7 @@ let test_hash_multiple = () => {
check_result_string(
"Hash matches",
Ok("f109b7892a541ed1e3cf39314cd25d21042b984f"),
hash_files([|"spit_version.sh", "spit_version.sh"|]),
hash_files(["spit_version.sh", "spit_version.sh"]),
);
};
@ -91,7 +91,7 @@ let test_hash_filters_nonexistent = () => {
check_result_string(
"Hash matches",
Ok("6ead949bf4bcae230b9ed9cd11e578e34ce9f9ea"),
hash_files([|"spit_version.sh", "FOOBARBAZ"|]),
hash_files(["spit_version.sh", "FOOBARBAZ"]),
);
};