@@ -189,32 +189,32 @@ end
189189 @test get_elabel_plot (p)[:text ][] == elabels
190190end
191191
192- @testset " test Pointf " begin
193- using GraphMakie: Pointf
192+ @testset " test to_pointf32 " begin
193+ using GraphMakie: to_pointf32
194194
195195 p = Point (0.0 , 0.0 )
196- @test typeof (Pointf (p)) == Point2f
197- @test Pointf (p) == Point2f (p)
196+ @test typeof (to_pointf32 (p)) == Point2f
197+ @test to_pointf32 (p) == Point2f (p)
198198
199199 p = Point (1 , 0 )
200- @test typeof (Pointf (p)) == Point2f
201- @test Pointf (p) == Point2f (p)
200+ @test typeof (to_pointf32 (p)) == Point2f
201+ @test to_pointf32 (p) == Point2f (p)
202202
203203 p = Point (0.0 , 1.0 , 2.0 )
204- @test typeof (Pointf (p)) == Point3f
205- @test Pointf (p) == Point3f (p)
204+ @test typeof (to_pointf32 (p)) == Point3f
205+ @test to_pointf32 (p) == Point3f (p)
206206
207- @test Pointf (0.0 , 0.0 , 0.0 ) isa Point3f
208- @test Pointf (1.0 , 1.0 ) isa Point2f
207+ @test to_pointf32 (0.0 , 0.0 , 0.0 ) isa Point3f
208+ @test to_pointf32 (1.0 , 1.0 ) isa Point2f
209209
210- @test Pointf ((0.0 , 0.0 , 0.0 )) isa Point3f
211- @test Pointf ((1.0 , 1.0 )) isa Point2f
210+ @test to_pointf32 ((0.0 , 0.0 , 0.0 )) isa Point3f
211+ @test to_pointf32 ((1.0 , 1.0 )) isa Point2f
212212
213- @test Pointf ([0.0 , 0.0 , 0.0 ]) isa Point3f
214- @test Pointf ([1.0 , 1.0 ]) isa Point2f
213+ @test to_pointf32 ([0.0 , 0.0 , 0.0 ]) isa Point3f
214+ @test to_pointf32 ([1.0 , 1.0 ]) isa Point2f
215215
216- @test Pointf (SA[0.0 , 0.0 , 0.0 ]) isa Point3f
217- @test Pointf (SA[1.0 , 1.0 ]) isa Point2f
216+ @test to_pointf32 (SA[0.0 , 0.0 , 0.0 ]) isa Point3f
217+ @test to_pointf32 (SA[1.0 , 1.0 ]) isa Point2f
218218
219219 g = complete_graph (3 )
220220 pos1 = [(0 ,0 ),
226226 pos3 = [SA[0 ,0 ],
227227 SA[1 ,1 ],
228228 SA[0 ,1 ]]
229- @test isconcretetype (typeof (Pointf .(pos1)))
230- @test isconcretetype (typeof (Pointf .(pos2)))
231- @test isconcretetype (typeof (Pointf .(pos3)))
229+ @test isconcretetype (typeof (to_pointf32 .(pos1)))
230+ @test isconcretetype (typeof (to_pointf32 .(pos2)))
231+ @test isconcretetype (typeof (to_pointf32 .(pos3)))
232232 graphplot (g; layout= (x)-> pos1)
233233 graphplot (g; layout= (x)-> pos2)
234234 graphplot (g; layout= (x)-> pos3)
278278 @test ax isa LScene
279279end
280280
281- @testset " test empty endge Blot " begin
281+ @testset " test empty edge plot " begin
282282 GraphMakie. edgeplot (GraphMakie. Line{Point{2 , Float32}}[])
283283 GraphMakie. edgeplot (GraphMakie. AbstractPath{Point{2 , Float32}}[])
284+
285+ # test empty edge color
286+ graphplot (SimpleGraph (2 ); edge_color= Symbol[])
284287end
285288
286289include (" referencetests.jl" )
0 commit comments