Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Increase tolerance when comparing floats in processing tests
  • Loading branch information
elpaso authored and nyalldawson committed Jun 19, 2020
1 parent e0514de commit 50f66ba
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Expand Up @@ -12,6 +12,10 @@ tests:
OUTPUT:
name: expected/mean_coordinates.gml
type: vector
compare:
fields:
__all__:
precision: 5

- algorithm: native:meancoordinates
name: Mean coordinates, multiple grouped
Expand Down
Expand Up @@ -1417,6 +1417,11 @@ tests:
type: vector
pk:
- zone
compare:
fields:
sum:
cast: float
precision: 5

- algorithm: native:rasterlayerzonalstats
name: Raster layer zonal stats, reprojected
Expand Down Expand Up @@ -1458,6 +1463,10 @@ tests:
type: vector
pk:
- zone
compare:
fields:
sum:
precision: 0

- algorithm: native:rasterlayerzonalstats
name: Raster layer zonal stats reprojected, zones ref
Expand All @@ -1477,6 +1486,10 @@ tests:
type: vector
pk:
- zone
compare:
fields:
sum:
precision: 0

- algorithm: native:antimeridiansplit
name: Antimeridian split, lines
Expand Down Expand Up @@ -1618,6 +1631,11 @@ tests:
OUTPUT_TABLE:
name: expected/surface_vol_above_crs.gml
type: vector
compare:
fields:
volume:
cast: float
precision: 5

- algorithm: native:rastersurfacevolume
name: Surface volume below (meters)
Expand All @@ -1639,6 +1657,11 @@ tests:
OUTPUT_TABLE:
name: expected/surface_vol_below_crs.gml
type: vector
compare:
fields:
volume:
cast: float
precision: 5

- algorithm: native:rastersurfacevolume
name: Surface volume subtract below (meters)
Expand Down Expand Up @@ -1681,6 +1704,11 @@ tests:
OUTPUT_TABLE:
name: expected/surface_vol_add_crs.gml
type: vector
compare:
fields:
volume:
cast: float
precision: 5

- algorithm: native:rastersurfacevolume
name: Surface volume with gaps
Expand Down Expand Up @@ -1966,6 +1994,8 @@ tests:
fields:
p_x:
precision: 6
p_y:
precision: 6

- algorithm: native:joinbynearest
name: Join by nearest polys to points
Expand Down

0 comments on commit 50f66ba

Please sign in to comment.