Skip to content

Commit

Permalink
Fix: Conflicting type on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Nov 4, 2024
1 parent 0ce4024 commit d54f567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,8 @@ def to_array(x, dtype=None):
(simd.cosine, LookupError, (to_array([1 + 2j]), to_array([1 + 2j])), {}),
# Test incompatible vectors for cosine
(simd.cosine, ValueError, (to_array([1.0]), to_array([1.0, 2.0])), {}), # Different number of dimensions
(simd.cosine, TypeError, (to_array([1.0]), to_array([1], "uint32")), {}), # Floats and integers
(simd.cosine, TypeError, (to_array([1]), to_array([1], "float16")), {}), # Different floats
(simd.cosine, TypeError, (to_array([1.0]), to_array([1], "int8")), {}), # Floats and integers
(simd.cosine, TypeError, (to_array([1], "float32"), to_array([1], "float16")), {}), # Different floats
],
)
def test_invalid_argument_handling(function, expected_error, args, kwargs):
Expand Down

0 comments on commit d54f567

Please sign in to comment.