@@ -53,28 +53,28 @@ defmodule HashTest do
53
53
54
54
for { data , hash_hex , _ } <- @ known_md5s do
55
55
test ( "hash MD5 #{ inspect ( data ) } in hexadecimal" ) do
56
- hash = Hash . md5 ( unquote ( data ) , :hex )
56
+ hash = Onigumo.Utilities. Hash. md5 ( unquote ( data ) , :hex )
57
57
assert ( hash == unquote ( hash_hex ) )
58
58
end
59
59
end
60
60
61
61
for { data , _ , hash_bin } <- @ known_md5s do
62
62
test ( "hash MD5 #{ inspect ( data ) } in binary" ) do
63
- hash = Hash . md5 ( unquote ( data ) , :bin )
63
+ hash = Onigumo.Utilities. Hash. md5 ( unquote ( data ) , :bin )
64
64
assert ( hash == unquote ( hash_bin ) )
65
65
end
66
66
end
67
67
68
68
for { format , hash } <- @ formatted_hashes do
69
69
test ( "format #{ inspect ( @ binary_hash ) } in #{ inspect ( format ) } " ) do
70
- formatted = Hash . format ( @ binary_hash , unquote ( format ) )
70
+ formatted = Onigumo.Utilities. Hash. format ( @ binary_hash , unquote ( format ) )
71
71
assert ( formatted == unquote ( hash ) )
72
72
end
73
73
end
74
74
75
75
for { func , known_hash } <- @ known_hashes do
76
76
test ( "hash #{ inspect ( @ known_hash_data ) } with #{ inspect ( func ) } " ) do
77
- computed_hash = Hash . hash ( unquote ( func ) , @ known_hash_data )
77
+ computed_hash = Onigumo.Utilities. Hash. hash ( unquote ( func ) , @ known_hash_data )
78
78
assert ( computed_hash == unquote ( known_hash ) )
79
79
end
80
80
end
0 commit comments