Initial unit tests#229
Initial unit tests#229bryevdv merged 11 commits intonv-legate:branch-22.05from bryevdv:bryanv/tests_cleanup
Conversation
|
Adding @manopapad as some of the tests are for tensor contraction utils. @manopapad let us know if there are any test vectors you wish to add. |
|
@bryevdv should |
|
The unit tests for the "_modes" functions look good to me. These functions are used internally to capture the semantics of the various NumPy linear algebra operations in einsum notation (e.g. for and similar for |
|
@manopapad oh that's perfect, I will update the PR to enumerate a larger set of cases using the oracle |
for more information, see https://pre-commit.ci
|
@manopapad I have updated the tests to use oracles. It's easy to add more test cases now, so let me know if you think the current ones are sufficient or more should be added. |
|
Weird, I have |
Tests look rather comprehensive to me. Maybe just to be complete for tensordot_modes, we could add a negative test for the |
|
@manopapad added those cases in eda929a |
|
OK, rest of the PR looks good to me. @magnatelee any further comments? |
|
@manopapad I don't think I have any. I trust your review. |
* remove pytest_lazy_fixture dependence * more pytest8 incompat
This PR adds some "basic" unit tests to a cubset of
cunumericmodules:cunumeric.coveragecunumeric.patchcunumeric.utilsCurrently, these tests may be run manually by executing the command
which will result in output similar to:
Details
Notes
mockpackages was added to the conda environment file. It needs to be installed (manually in an existing env, otherwise) to run the tests.Runtime. They were interfering with the ability to mockRuntimemethods and attributes, but also are not really appropriate in this situation. The intended purpose of__slots__is a space-optimization in the case of many small objects.implemented/unimplementedjust to greatly streamline testing.np.booletc, were removed.