File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 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):
165165
166166 # these should be different!
167167 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 )
169169 self .assert_numpy_array_equal (result1 , expected1 )
170170
171171 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 )
173173 self .assert_numpy_array_equal (result2 , expected2 )
174174
175175 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