Skip to content

Commit

Permalink
Fix #1925 - nc test error in Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
avancinirodrigo committed Jul 14, 2017
1 parent 53685bb commit 2826596
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/base/tests/functional/basics/CellularSpace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@ return{
layer = gis.Layer{
project = proj,
name = layerName1,
file = filePath1
file = filePath1,
epsg = 4326
}

cs = CellularSpace{
Expand Down
14 changes: 9 additions & 5 deletions packages/gis/tests/nc/basic/Layer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ return {
Layer {
project = proj,
name = layerName1,
file = filePath("test/vegtype_2000.nc", "gis")
file = filePath("test/vegtype_2000.nc", "gis"),
epsg = 4326
}

local filePath1 = "vegtype_cells_nc_basic.shp"
Expand Down Expand Up @@ -78,7 +79,8 @@ return {
local l = Layer {
project = proj,
name = vegType,
file = filePath("test/vegtype_2000.nc", "gis")
file = filePath("test/vegtype_2000.nc", "gis"),
epsg = 4326
}

unitTest:assertEquals(l:representation(), "raster") -- SKIP
Expand All @@ -101,7 +103,8 @@ return {
local l = Layer {
project = proj,
name = vegType,
file = filePath("test/vegtype_2000.nc", "gis")
file = filePath("test/vegtype_2000.nc", "gis"),
epsg = 4326
}

unitTest:assertEquals(l:bands(), 1) -- SKIP
Expand All @@ -125,11 +128,12 @@ return {
local l = Layer {
project = proj,
name = layerName1,
file = filePath("test/vegtype_2000.nc", "gis")
file = filePath("test/vegtype_2000.nc", "gis"),
epsg = 4326
}

unitTest:assertEquals( -- SKIP
tostring(l), [[epsg number [0]
tostring(l), [[epsg number [4326]
file string [vegtype_2000.nc]
name string [Vegtype_layer]
project Project
Expand Down

0 comments on commit 2826596

Please sign in to comment.