Skip to content

Commit 9673132

Browse files
author
Vincent Landau
committed
tweaks to tests to improve coverage
1 parent 52ce622 commit 9673132

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

test/lg_interface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ add_vertices!(empty, maximum(rasgraph.vertex_raster))
3030
add_edge!(empty, 1, 4, Float32(0.5))
3131

3232
@test nv(empty) == maximum(rasgraph.vertex_raster)
33-
@test has_edge(empty, 1, 4)
33+
@test has_edge(empty, 1, 4)
34+
@test get_weight(empty, 1, 4) == Float32(0.5)

test/simplerasterdigraphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using GeoData, LightGraphs, SimpleWeightedGraphs, SpatialGraphs, Test
22

33
condition_array = Array{Float64}(undef, (3, 4, 1))
4-
condition_array[:,:,:] = [1, 3, 5, 2, 4, 8, 5, -9999, 2, 3, 6, 7]
4+
condition_array[:,:,:] = [1, 0.5, 5, 2, 4, 8, 5, -9999, 2, 3, 6, 7]
55

66
x = X(1:4)
77
y = Y(1:3)

test/weightedrasterdigraphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ A_array = Array{Float64}(undef, (3, 4, 1))
33
A_array[:,:,:] = [1, 3, 2, 0.5, 10, 8, 5, -9999, 3, 1, 2, 6]
44

55
condition_array = Array{Float64}(undef, (3, 4, 1))
6-
condition_array[:,:,:] = [1, 3, 5, 2, 4, 8, 5, -9999, 2, 3, 6, 7]
6+
condition_array[:,:,:] = [1, 0.5, 5, 2, 4, 8, 5, -9999, 2, 3, 6, 7]
77

88
x = X(1:4)
99
y = Y(1:3)

0 commit comments

Comments
 (0)