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

Issue #1095: Spatial component should use floats for distance. #1096

Merged
merged 3 commits into from
Sep 28, 2023

Conversation

wu-edward
Copy link

No description provided.

@wu-edward
Copy link
Author

Addresses #1095

@thomascorthals
Copy link
Member

Minor nitpick: maybe update these tests to use floats? That should prevent the unlikely regression of accidentally reverting to ints.

public function testConfigMode()

public function testSetAndGetDistance()

public function testBuildComponent()

@wu-edward
Copy link
Author

Minor nitpick: maybe update these tests to use floats? That should prevent the unlikely regression of accidentally reverting to ints.

public function testConfigMode()

public function testSetAndGetDistance()

public function testBuildComponent()

Thanks for the review. Pushed a commit with updated tests.

thomascorthals
thomascorthals previously approved these changes Sep 27, 2023
@thomascorthals
Copy link
Member

@wu-edward I often forget this myself for small fixes like this, but it's worth mentioning in the CHANGELOG too. No longer rounding to an integer distance will influence results.

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (52e5623) 97.49% compared to head (5e19974) 97.49%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1096   +/-   ##
=======================================
  Coverage   97.49%   97.49%           
=======================================
  Files         389      389           
  Lines       10148    10148           
=======================================
  Hits         9894     9894           
  Misses        254      254           
Flag Coverage Δ
unittests 97.49% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/Component/Spatial.php 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wu-edward
Copy link
Author

@wu-edward I often forget this myself for small fixes like this, but it's worth mentioning in the CHANGELOG too. No longer rounding to an integer distance will influence results.

CHANGELOG updated

@mkalkbrenner mkalkbrenner merged commit 0e1d769 into solariumphp:master Sep 28, 2023
21 checks passed
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.

3 participants