arrayfire / arrayfire-binary-python-wrapper

A python thin wrapper for ArrayFire library
https://arrayfire.com
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

added constant tests #17

Closed sakchal closed 8 months ago

sakchal commented 8 months ago

This PR introduces a suite of unit tests for constant.py located within the create_array directory. The primary functions in this file facilitate the creation of constant arrays, filled uniformly with a specified value.

Correct Array Shape: Ensures that arrays are instantiated with the intended dimensions. Data Type Accuracy: Validates that the resulting arrays strictly adhere to the specified data types. Error Handling: Assesses the functions' error handling, specifically dealing with the shape of the array

roaffix commented 8 months ago

Tests are failing on code check. Consider running locally make pre-commit or explicitly black --check . to find the issues. OR you can auto fix the issues by running black .

Please, consider doing the same for the rest of the PRs. Tag me when you are ready and I'll merge PRs.

sakchal commented 8 months ago

The code check is failing due to some mypy errors occurring on the backend.py file. I haven't touched that file, so if you want me to go in and fix those errors, I can do that as well.