summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad9
-rw-r--r--testdata/scad/misc/builtin-tests.scad1
-rw-r--r--testdata/scad/misc/parser-tests.scad7
3 files changed, 17 insertions, 0 deletions
diff --git a/testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad b/testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad
new file mode 100644
index 0000000..754a2a6
--- /dev/null
+++ b/testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad
@@ -0,0 +1,9 @@
+difference() {
+ rotate_extrude($fn=5) translate([4,0,0]) square([10, 10], center=true);
+ translate([6,6,6]) sphere(r=10);
+}
+
+union() {
+ rotate_extrude($fn=5) translate([4,0,0]) square([10, 10], center=true);
+ cylinder(h=5,r=3);
+}
diff --git a/testdata/scad/misc/builtin-tests.scad b/testdata/scad/misc/builtin-tests.scad
new file mode 100644
index 0000000..6b5eac1
--- /dev/null
+++ b/testdata/scad/misc/builtin-tests.scad
@@ -0,0 +1 @@
+p = PI; echo(p);
diff --git a/testdata/scad/misc/parser-tests.scad b/testdata/scad/misc/parser-tests.scad
new file mode 100644
index 0000000..03cbded
--- /dev/null
+++ b/testdata/scad/misc/parser-tests.scad
@@ -0,0 +1,7 @@
+// Number literals
+
+a = .1; echo(a);
+b = 2.; echo(b);
+c = 11e+2; echo(c);
+d = 21.e-3; echo(d);
+e = .11e-12; echo(e);
contact: Jan Huwald // Impressum