File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -165,12 +165,13 @@ def test_hash_collisions(self):
165
165
166
166
# these should be different!
167
167
result1 = hash_array (np .asarray (L [0 :1 ], dtype = object ), 'utf8' )
168
- expected1 = np .array ([1760245841805064774 ], dtype = np .uint64 )
168
+ expected1 = np .array ([14963968704024874985 ], dtype = np .uint64 )
169
169
self .assert_numpy_array_equal (result1 , expected1 )
170
170
171
171
result2 = hash_array (np .asarray (L [1 :2 ], dtype = object ), 'utf8' )
172
- expected2 = np .array ([1760245841805064774 ], dtype = np .uint64 )
172
+ expected2 = np .array ([16428432627716348016 ], dtype = np .uint64 )
173
173
self .assert_numpy_array_equal (result2 , expected2 )
174
174
175
175
result = hash_array (np .asarray (L , dtype = object ), 'utf8' )
176
- self .assertTrue (len (result )) == 2
176
+ self .assert_numpy_array_equal (
177
+ result , np .concatenate ([expected1 , expected2 ], axis = 0 ))
You can’t perform that action at this time.
0 commit comments