Skip to content

Commit 8aed830

Browse files
authored
Merge pull request #37 from JuliaGraphs/hw/bump_geobasics
bump GeometryBasics to 0.4
2 parents 0d170f8 + 88e26b5 commit 8aed830

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "NetworkLayout"
22
uuid = "46757867-2c16-5918-afeb-47bfcb05e46a"
3-
version = "0.4.1"
3+
version = "0.4.2"
44

55
[deps]
66
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"
@@ -10,7 +10,7 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1010
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1111

1212
[compat]
13-
GeometryBasics = "0.3"
13+
GeometryBasics = "0.4"
1414
Requires = "1"
1515
julia = "1"
1616

test/runtests.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jagmesh_adj = jagmesh()
2626
ip = [(1, 2.0, 3.0), (1, 2.0, 3)]
2727
algo = SFDP(; initialpos=ip)
2828
@test algo isa SFDP{3,Float64}
29-
ip = [Point2f0(1, 2)]
29+
ip = [Point2f(1, 2)]
3030
algo = SFDP(; initialpos=ip)
3131
@test algo isa SFDP{2,Float32}
3232
end
@@ -47,20 +47,20 @@ jagmesh_adj = jagmesh()
4747
@testset "Testing Jagmesh1 graph" begin
4848
println("SFDP Jagmesh1")
4949
positions = @time SFDP(; dim=2, Ptype=Float32, tol=0.9, K=1, iterations=10)(jagmesh_adj)
50-
@test typeof(positions) == Vector{Point2f0}
50+
@test typeof(positions) == Vector{Point2f}
5151
positions = @time SFDP(; dim=3, Ptype=Float32, tol=0.9, K=1, iterations=10)(jagmesh_adj)
52-
@test typeof(positions) == Vector{Point3f0}
52+
@test typeof(positions) == Vector{Point3f}
5353
end
5454

5555
@testset "Testing wheel_graph" begin
5656
println("SFDP Wheelgraph")
5757
g = wheel_graph(10)
5858
adj_matrix = adjacency_matrix(g)
5959
positions = @time SFDP(; dim=2, Ptype=Float32, tol=0.1, K=1)(adj_matrix)
60-
@test typeof(positions) == Vector{Point2f0}
60+
@test typeof(positions) == Vector{Point2f}
6161
@test positions == sfdp(adj_matrix; dim=2, Ptype=Float32, tol=0.1, K=1)
6262
positions = @time SFDP(; dim=3, Ptype=Float32, tol=0.1, K=1)(adj_matrix)
63-
@test typeof(positions) == Vector{Point3f0}
63+
@test typeof(positions) == Vector{Point3f}
6464
@test positions == sfdp(adj_matrix; dim=3, Ptype=Float32, tol=0.1, K=1)
6565
end
6666
end
@@ -75,7 +75,7 @@ jagmesh_adj = jagmesh()
7575
ip = [(1, 2.0, 3.0), (1, 2.0, 3)]
7676
algo = Stress(; initialpos=ip)
7777
@test algo isa Stress{3,Float64}
78-
ip = [Point2f0(1, 2)]
78+
ip = [Point2f(1, 2)]
7979
algo = Stress(; initialpos=ip)
8080
@test algo isa Stress{2,Float32}
8181
end
@@ -96,20 +96,20 @@ jagmesh_adj = jagmesh()
9696
@testset "Testing Jagmesh1 graph" begin
9797
println("Stress Jagmesh1")
9898
positions = @time Stress(; iterations=10, Ptype=Float32)(jagmesh_adj)
99-
@test typeof(positions) == Vector{Point2f0}
99+
@test typeof(positions) == Vector{Point2f}
100100
positions = @time Stress(; iterations=10, dim=3, Ptype=Float32)(jagmesh_adj)
101-
@test typeof(positions) == Vector{Point3f0}
101+
@test typeof(positions) == Vector{Point3f}
102102
end
103103

104104
@testset "Testing wheel_graph" begin
105105
println("Stress wheel_graph")
106106
g = wheel_graph(10)
107107
adj_matrix = adjacency_matrix(g)
108108
positions = @time Stress(; iterations=10, Ptype=Float32)(adj_matrix)
109-
@test typeof(positions) == Vector{Point2f0}
109+
@test typeof(positions) == Vector{Point2f}
110110
@test positions == stress(adj_matrix; iterations=10, Ptype=Float32)
111111
positions = @time Stress(; iterations=10, dim=3, Ptype=Float32)(adj_matrix)
112-
@test typeof(positions) == Vector{Point3f0}
112+
@test typeof(positions) == Vector{Point3f}
113113
@test positions == stress(adj_matrix; iterations=10, dim=3, Ptype=Float32)
114114
end
115115
end
@@ -124,7 +124,7 @@ jagmesh_adj = jagmesh()
124124
ip = [(1, 2.0, 3.0), (1, 2.0, 3)]
125125
algo = Spring(; initialpos=ip)
126126
@test algo isa Spring{3,Float64}
127-
ip = [Point2f0(1, 2)]
127+
ip = [Point2f(1, 2)]
128128
algo = Spring(; initialpos=ip)
129129
@test algo isa Spring{2,Float32}
130130
end
@@ -146,10 +146,10 @@ jagmesh_adj = jagmesh()
146146
g = wheel_graph(10)
147147
adj_matrix = adjacency_matrix(g)
148148
positions = @time Spring(; C=2.0, iterations=100, initialtemp=2.0, Ptype=Float32)(adj_matrix)
149-
@test typeof(positions) == Vector{Point2f0}
149+
@test typeof(positions) == Vector{Point2f}
150150
@test positions == spring(adj_matrix; C=2.0, iterations=100, initialtemp=2.0, Ptype=Float32)
151151
positions = @time Spring(; C=2.0, iterations=100, initialtemp=2.0, Ptype=Float32, dim=3)(adj_matrix)
152-
@test typeof(positions) == Vector{Point3f0}
152+
@test typeof(positions) == Vector{Point3f}
153153
@test positions ==
154154
spring(adj_matrix; C=2.0, iterations=100, initialtemp=2.0, Ptype=Float32, dim=3)
155155
end

0 commit comments

Comments
 (0)