Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating tests - Part2 #2227

Merged
merged 5 commits into from
Dec 11, 2024
Merged

updating tests - Part2 #2227

merged 5 commits into from
Dec 11, 2024

Conversation

vtavana
Copy link
Collaborator

@vtavana vtavana commented Dec 9, 2024

This is part 2 of a series of PRs in which the tests are refactored. In this PR, test_linalg.py, test_product.py, test_statistics.py, test_fft.py, and test_sort.py are updated.
Part 1 was #2210.

The main change is to use a common function generate_random_numpy_array from dpnp/tests/helper.py for generating input array for different tests.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

@vtavana vtavana self-assigned this Dec 9, 2024
@vtavana vtavana mentioned this pull request Dec 9, 2024
6 tasks
Copy link
Contributor

github-actions bot commented Dec 9, 2024

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@vtavana vtavana changed the title update input generation for tests updating tests - Part2 Dec 9, 2024
@vtavana vtavana force-pushed the update-tests-part-2 branch from 3b5f426 to 75975c0 Compare December 10, 2024 06:08
@vtavana vtavana marked this pull request as ready for review December 10, 2024 06:08
dpnp/tests/helper.py Outdated Show resolved Hide resolved
dpnp/tests/test_linalg.py Outdated Show resolved Hide resolved
Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @vtavana , I have only minor comments

dpnp/tests/test_linalg.py Outdated Show resolved Hide resolved
dpnp/tests/test_mathematical.py Outdated Show resolved Hide resolved
@vtavana vtavana merged commit d83ea3d into master Dec 11, 2024
47 of 48 checks passed
@vtavana vtavana deleted the update-tests-part-2 branch December 11, 2024 16:55
github-actions bot added a commit that referenced this pull request Dec 11, 2024
This is part 2 of a series of PRs in which the tests are refactored. In
this PR, `test_linalg.py`, `test_product.py`, `test_statistics.py`,
`test_fft.py`, and `test_sort.py` are updated.
Part 1 was #2210.

The main change is to use a common function
`generate_random_numpy_array` from `dpnp/tests/helper.py` for generating
input array for different tests. d83ea3d
antonwolfy pushed a commit that referenced this pull request Dec 17, 2024
This PR suggests updating the helper function
`generate_random_numpy_array()` by adding an argument `order` to
generate arrays in different orders

Additionally 
Input generation for tests was changed in #2227 , now `test_fft2` and
`test_fftn` do not use `order` parameter.
This PR suggests to update these tests to use input data with different
orders.
github-actions bot added a commit that referenced this pull request Dec 17, 2024
This PR suggests updating the helper function
`generate_random_numpy_array()` by adding an argument `order` to
generate arrays in different orders

Additionally
Input generation for tests was changed in #2227 , now `test_fft2` and
`test_fftn` do not use `order` parameter.
This PR suggests to update these tests to use input data with different
orders. 8f05542
vtavana pushed a commit that referenced this pull request Dec 17, 2024
This PR suggests updating the helper function
`generate_random_numpy_array()` by adding an argument `order` to
generate arrays in different orders

Additionally 
Input generation for tests was changed in #2227 , now `test_fft2` and
`test_fftn` do not use `order` parameter.
This PR suggests to update these tests to use input data with different
orders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants