Skip to content

#1001 fix intermittent test failure - changing Rect coordinates to double.#1008

Merged
iluwatar merged 1 commit into
iluwatar:masterfrom
Smirne:master
Oct 15, 2019
Merged

#1001 fix intermittent test failure - changing Rect coordinates to double.#1008
iluwatar merged 1 commit into
iluwatar:masterfrom
Smirne:master

Conversation

@Smirne
Copy link
Copy Markdown
Contributor

@Smirne Smirne commented Oct 14, 2019

#1001 QuadTreeTest was showing intermittent failures.

The problem was due to the Rect data structure using int to store values (x, y, height, width).

Since the QuadTree divides its space in four, we need to either to change the Rect data structure or the divide algorithm.

I find the former more readable and clear.

@iluwatar iluwatar added this to the 1.22.0 milestone Oct 15, 2019
@iluwatar iluwatar merged commit 27c131c into iluwatar:master Oct 15, 2019
@iluwatar
Copy link
Copy Markdown
Owner

Thanks @Smirne for this fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants