From 8f53a56120049711102e6a102930267d52895acb Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Mon, 5 Oct 2026 13:27:53 -0400 Subject: [PATCH] Update binary stl parsing test --- zigsdof/src/stl.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zigsdof/src/stl.zig b/zigsdof/src/stl.zig index f7d9489..f755b1e 100644 --- a/zigsdof/src/stl.zig +++ b/zigsdof/src/stl.zig @@ -180,6 +180,11 @@ test "Test binary stl is parsed correctly" { vec3.Vec3F64.init(0, -0.7071067690849304, 0.7071067690849304), 1e-12, )); + + const expected_first_tri = .{ 0, 1, 2 }; + try std.testing.expect(std.mem.eql(usize, &expected_first_tri, &mesh.triangle_vertices.items[0])); + const expected_second_tri = .{ 0, 3, 4 }; + try std.testing.expect(std.mem.eql(usize, &expected_second_tri, &mesh.triangle_vertices.items[1])); } fn createDummyMesh(allocator: std.mem.Allocator) !Mesh {