Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
Miou-zora committed Apr 28, 2024
1 parent 89fb8d6 commit df41437
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/Camera.zig
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,6 @@ pub const Camera = struct {
}
};

test "casual" {
const camera = Camera{
.origin = Pt3.nil(),
.screen = .{
.origin = .{
.x = -0.5,
.y = 1,
.z = -0.5,
},
.left = .{
.x = 1,
.y = 0,
.z = 0,
},
.top = .{
.x = 0,
.y = 0,
.z = 1,
},
},
};
try std.testing.expectEqual(camera.createRay(0.5, 0.5), Ray{ .direction = .{ .x = 0, .y = 1, .z = 0 }, .origin = .{ .x = 0, .y = 0, .z = 0 } });
try std.testing.expectEqual(camera.createRay(1, 1), Ray{ .direction = .{ .x = 0.5, .y = 1, .z = 0.5 }, .origin = .{ .x = 0, .y = 0, .z = 0 } });
try std.testing.expectEqual(camera.createRay(0, 0), Ray{ .direction = .{ .x = -0.5, .y = 1, .z = -0.5 }, .origin = .{ .x = 0, .y = 0, .z = 0 } });
}

test {
std.testing.refAllDecls(@This());
}

0 comments on commit df41437

Please sign in to comment.