Skip to content

Commit

Permalink
Prevent very very long loops with large positive and negative numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
SabineEmbacher committed Apr 15, 2024
1 parent 53b661c commit 769ae67
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ public class PPUtilsTest {

@Test
public void convertToFitTheRangeMinus180to180() {
final int farOutside = 360 * 200;
final int farOutside = 360 * 10;

final double[] lons = {
-180,
-179.999999999,
179.999999999,
180,
179.999999999,
180,
-190,
190,
190,
-30 - farOutside,
40 + farOutside,
40 + farOutside,
Double.NaN,
Double.NEGATIVE_INFINITY,
Double.POSITIVE_INFINITY
Expand Down

0 comments on commit 769ae67

Please sign in to comment.