@@ -117,14 +117,14 @@ defmodule Scenic.Cache.HashTest do
117
117
118
118
test "verify_file returns {:ok, data} when the hash checks out ok" do
119
119
assert Hash . verify_file ( @ missing_hash_path , @ missing_hash , :sha ) == { :ok , @ missing_hash }
120
+
120
121
assert Hash . verify_file ( @ missing_hash_path , @ missing_hash_256 , :sha256 ) ==
121
122
{ :ok , @ missing_hash_256 }
122
123
end
123
124
124
125
test "verify_file returns {:error, :hash_failure} when the hash fails" do
125
126
assert Hash . verify_file ( @ missing_hash_path , "not_a_hash" , :sha ) == { :error , :hash_failure }
126
- assert Hash . verify_file ( @ missing_hash_path , "not_a_hash" , :sha256 ) ==
127
- { :error , :hash_failure }
127
+ assert Hash . verify_file ( @ missing_hash_path , "not_a_hash" , :sha256 ) == { :error , :hash_failure }
128
128
end
129
129
130
130
test "verify_file passes through file system errors" do
@@ -137,8 +137,7 @@ defmodule Scenic.Cache.HashTest do
137
137
138
138
test "verify_file! returns data when the hash checks out ok" do
139
139
assert Hash . verify_file! ( @ missing_hash_path , @ missing_hash , :sha ) == @ missing_hash
140
- assert Hash . verify_file! ( @ missing_hash_path , @ missing_hash_256 , :sha256 ) ==
141
- @ missing_hash_256
140
+ assert Hash . verify_file! ( @ missing_hash_path , @ missing_hash_256 , :sha256 ) == @ missing_hash_256
142
141
end
143
142
144
143
test "verify_file! raises on a hash failure" do
0 commit comments