Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raytrace unit tests #73

Open
brandondube opened this issue Dec 23, 2021 · 0 comments
Open

Raytrace unit tests #73

brandondube opened this issue Dec 23, 2021 · 0 comments

Comments

@brandondube
Copy link
Owner

Unit tests are needed for ray-tracing. A functional test suite that proves the code doesn't crash for each surface type is low-hanging fruit. Some "physics" tests, like a parabola has no ray error for an object at infinity and a sphere no ray error for an object at its focus, shoudl be added.

The lower level functions are probably unit test-able, e.g. that the angle between surface normal and entrance ray is the same as surface normal and exit ray.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant