Skip to content

Commit 063ba2f

Browse files
committed
fix test failures
1 parent 7c58fc7 commit 063ba2f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/geometrytypes.jl

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@ using Test, GeometryBasics
22

33
@testset "algorithms.jl" begin
44
cube = Rect(Vec3f0(-0.5), Vec3f0(1))
5-
cube_faces = decompose(TriangleFace{Int}, QuadFace{Int}[
6-
(1,3,4,2),
7-
(2,4,8,6),
8-
(4,3,7,8),
9-
(1,5,7,3),
10-
(1,2,6,5),
11-
(5,6,8,7),
12-
])
5+
cube_faces = decompose(TriangleFace{Int}, faces(cube))
136
cube_vertices = decompose(Point{3,Float32}, cube)
147
@test area(cube_vertices, cube_faces) == 6
158
mesh = Mesh(cube_vertices, cube_faces)
@@ -121,7 +114,7 @@ end
121114
@test decompose(Point2f0, mesh) == pt_expa
122115

123116
b = Rect(Vec(1,1,1),Vec(1,1,1))
124-
pt_expb = Point{3,Int}[(1,1,1),(2,1,1),(1,2,1),(2,2,1),(1,1,2),(2,1,2),(1,2,2),(2,2,2)]
117+
pt_expb = Point{3,Int64}[[1, 1, 1], [1, 1, 2], [1, 2, 2], [1, 2, 1], [1, 1, 1], [2, 1, 1], [2, 1, 2], [1, 1, 2], [1, 1, 1], [1, 2, 1], [2, 2, 1], [2, 1, 1], [2, 2, 2], [1, 2, 2], [1, 1, 2], [2, 1, 2], [2, 2, 2], [2, 1, 2], [2, 1, 1], [2, 2, 1], [2, 2, 2], [2, 2, 1], [1, 2, 1], [1, 2, 2]]
125118
@test decompose(Point{3,Int}, b) == pt_expb
126119
mesh = normal_mesh(b)
127120
end

0 commit comments

Comments
 (0)