Add tests for sphere_point_lies_on_surface and sphere_compute_normal
This commit is contained in:
parent
600f93b908
commit
ee536de7dc
1 changed files with 16 additions and 0 deletions
|
@ -64,6 +64,20 @@ check_sphere_intersection(Object *sphere, Ray ray, Vector3 *tvectors, int ntvect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
START_TEST(test_sphere_point_lies_on_surface)
|
||||||
|
{
|
||||||
|
ck_assert(0);
|
||||||
|
}
|
||||||
|
END_TEST
|
||||||
|
|
||||||
|
|
||||||
|
START_TEST(test_sphere_compute_normal)
|
||||||
|
{
|
||||||
|
ck_assert(0);
|
||||||
|
}
|
||||||
|
END_TEST
|
||||||
|
|
||||||
|
|
||||||
Suite *
|
Suite *
|
||||||
test_object_create_suite()
|
test_object_create_suite()
|
||||||
{
|
{
|
||||||
|
@ -71,6 +85,8 @@ test_object_create_suite()
|
||||||
|
|
||||||
TCase *tc_sphere = tcase_create("sphere");
|
TCase *tc_sphere = tcase_create("sphere");
|
||||||
tcase_add_test(tc_sphere, test_sphere_does_intersect);
|
tcase_add_test(tc_sphere, test_sphere_does_intersect);
|
||||||
|
tcase_add_test(tc_sphere, test_sphere_point_lies_on_surface);
|
||||||
|
tcase_add_test(tc_sphere, test_sphere_compute_normal);
|
||||||
suite_add_tcase(s, tc_sphere);
|
suite_add_tcase(s, tc_sphere);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue