summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/tests.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c
index 15c5967..d8d1dd9 100644
--- a/tests/libdimension/tests.c
+++ b/tests/libdimension/tests.c
@@ -124,7 +124,19 @@ dmnsn_new_default_scene()
return NULL;
}
- cube->texture->finish = dmnsn_new_reflective_finish(dmnsn_white, dmnsn_white, 1.0);
+ cube->texture->finish = dmnsn_new_reflective_finish(dmnsn_white, dmnsn_white,
+ 1.0);
+ if (!cube->texture->finish) {
+ dmnsn_delete_scene(scene);
+ return NULL;
+ }
+
+ cube->interior = dmnsn_new_interior();
+ if (!cube->interior) {
+ dmnsn_delete_scene(scene);
+ return NULL;
+ }
+ cube->interior->ior = 1.3;
cube->trans = dmnsn_rotation_matrix(dmnsn_new_vector(0.75, 0.0, 0.0));