diff options
author | Marius Kintel <marius@kintel.net> | 2013-06-01 20:11:15 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-06-01 20:11:15 (GMT) |
commit | 84088dee5868094daec6007c0343c6b8a824d68f (patch) | |
tree | 6538ed05975221ac1293e7a9fc95939cdab853db /testdata | |
parent | f11009285220f4c033f98baeb7217e46a98107ca (diff) |
Improved if-else test to include a multiple-children test
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/scad/features/ifelse-tests.scad | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/testdata/scad/features/ifelse-tests.scad b/testdata/scad/features/ifelse-tests.scad index d8c777b..3c72d55 100644 --- a/testdata/scad/features/ifelse-tests.scad +++ b/testdata/scad/features/ifelse-tests.scad @@ -1,5 +1,11 @@ -if (true) cube(2, true); -else cylinder(r=1,h=2); +if (true) { + cube(2, true); + translate([-3,0,0]) cube(2, true); +} +else { + cylinder(r=1,h=2); + translate([-3,0,0]) cylinder(r=1,h=2); +} translate([3,0,0]) if (false) cylinder(r=1,h=2); |