diff options
author | Marius Kintel <marius@kintel.net> | 2014-01-16 00:24:38 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2014-01-16 00:24:38 (GMT) |
commit | 5c57ed41e7136cc9c2efcb2353a2394fc442d718 (patch) | |
tree | efe1f88ddf1f206247dfebd90366f51c5b00d4d1 | |
parent | 7af692282911931279a330308d1e123ed9d1d1fe (diff) |
Added test for empty geometry
-rw-r--r-- | testdata/scad/misc/empty-shape-tests.scad | 28 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tests/regression/cgalpngtest/empty-shape-tests-expected.png | bin | 0 -> 4408 bytes | |||
-rw-r--r-- | tests/regression/opencsgtest/empty-shape-tests-expected.png | bin | 0 -> 4408 bytes | |||
-rw-r--r-- | tests/regression/throwntogethertest/empty-shape-tests-expected.png | bin | 0 -> 4408 bytes |
5 files changed, 30 insertions, 1 deletions
diff --git a/testdata/scad/misc/empty-shape-tests.scad b/testdata/scad/misc/empty-shape-tests.scad new file mode 100644 index 0000000..2b1a98c --- /dev/null +++ b/testdata/scad/misc/empty-shape-tests.scad @@ -0,0 +1,28 @@ +linear_extrude(h=1) { + square(0); + circle(0); + polygon(); + import(); +} + +cube(0); +sphere(0); +cylinder(0); +polyhedron(); +import(); +surface(); +rotate_extrude(); +linear_extrude(); +translate(); +color(); +hull(); +minkowski(); +union(); +difference(); +intersection(); +render(); +projection(); +assign(); +if(1) { } +intersection_for(); +for(); diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6e1f905..053dbf9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -841,7 +841,8 @@ list(APPEND CGALPNGTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/include- ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/transform-nan-inf-tests.scad ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/localfiles-test.scad ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/localfiles_dir/localfiles-compatibility-test.scad - ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/rotate-empty-bbox.scad) + ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/rotate-empty-bbox.scad + ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/empty-shape-tests.scad) list(APPEND OPENCSGTEST_FILES ${CGALPNGTEST_FILES}) list(APPEND OPENCSGTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/bugs/intersection-prune-test.scad) diff --git a/tests/regression/cgalpngtest/empty-shape-tests-expected.png b/tests/regression/cgalpngtest/empty-shape-tests-expected.png Binary files differnew file mode 100644 index 0000000..50d838c --- /dev/null +++ b/tests/regression/cgalpngtest/empty-shape-tests-expected.png diff --git a/tests/regression/opencsgtest/empty-shape-tests-expected.png b/tests/regression/opencsgtest/empty-shape-tests-expected.png Binary files differnew file mode 100644 index 0000000..50d838c --- /dev/null +++ b/tests/regression/opencsgtest/empty-shape-tests-expected.png diff --git a/tests/regression/throwntogethertest/empty-shape-tests-expected.png b/tests/regression/throwntogethertest/empty-shape-tests-expected.png Binary files differnew file mode 100644 index 0000000..50d838c --- /dev/null +++ b/tests/regression/throwntogethertest/empty-shape-tests-expected.png |