Closed ayasyrev closed 4 months ago
This pull request addresses an issue in the test_add function where negative values were being added to unsigned integers (np.uint8). The dtype has been changed to signed integers (np.int8 and np.int16) to handle negative values correctly. Additionally, an indentation issue was fixed, and a blank line was added for better readability.
Files | Changes |
---|---|
tests/test_add.py |
Updated dtype to handle negative values correctly, fixed indentation, and added a blank line for readability. |
change dtype uint to int when adds negative value
Summary by Sourcery
This pull request addresses a bug in the test_add function by correcting the dtype from unsigned integer to signed integer when adding negative values. This ensures that the tests handle negative values correctly.