Update binary stl parsing test
This commit is contained in:
parent
ac8bd25339
commit
8f53a56120
1 changed files with 5 additions and 0 deletions
|
|
@ -180,6 +180,11 @@ test "Test binary stl is parsed correctly" {
|
||||||
vec3.Vec3F64.init(0, -0.7071067690849304, 0.7071067690849304),
|
vec3.Vec3F64.init(0, -0.7071067690849304, 0.7071067690849304),
|
||||||
1e-12,
|
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 {
|
fn createDummyMesh(allocator: std.mem.Allocator) !Mesh {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue