Skip to content

Conversation

@erikvansebille
Copy link
Member

This PR adds the tests/utils.round_and_hash_float_array() function also to v3, so we can easily compare unit test results between v3 and v4.

  • Chose the correct base branch (main for v3 changes, v4-dev for v4 changes)

So we can easily compare unit test results between v3 and v4
Copy link
Contributor

@VeckoTheGecko VeckoTheGecko left a comment

Choose a reason for hiding this comment

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

LGTM. Though if we want to

unit test results between v3 and v4.

we of course also need to identify tests that we want to use for this comparison. The test suites have diverged quite a bit - but I imagine you already have some tests in mind @erikvansebille ? Also, we have the saved outputs introduced in ffb2fca and used in tests/v4/test_interpolation.py - but I assume you want to expand the comparison to other parts in the codebase?

@erikvansebille
Copy link
Member Author

Exactly! I needed this function when working on #2152, and can imagine it's good to have when we port over other functionality and unit tests

@erikvansebille erikvansebille merged commit 4073545 into main Aug 22, 2025
16 checks passed
@erikvansebille erikvansebille deleted the hashfunction_for_testing_in_v3 branch August 22, 2025 08:31
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants