summaryrefslogtreecommitdiff
path: root/testdata/scad/include-test.scad
diff options
context:
space:
mode:
authorGiles Bathgate <gilesbathgate@gmail.com>2010-12-10 11:46:09 (GMT)
committerGiles Bathgate <gilesbathgate@gmail.com>2010-12-10 11:46:09 (GMT)
commit44dd33a5567681d28adb963d1d325aa86d723130 (patch)
tree98aee15e23d5f2848960232e845c2cfac3094fef /testdata/scad/include-test.scad
parentd98e398ec185f87501c1374cc3863457ed450663 (diff)
Added some tests for new nested include feature.
Diffstat (limited to 'testdata/scad/include-test.scad')
-rw-r--r--testdata/scad/include-test.scad37
1 files changed, 37 insertions, 0 deletions
diff --git a/testdata/scad/include-test.scad b/testdata/scad/include-test.scad
new file mode 100644
index 0000000..a9528f5
--- /dev/null
+++ b/testdata/scad/include-test.scad
@@ -0,0 +1,37 @@
+//Test that the entire path is pushed onto the stack upto the last '/'
+include <sub1/sub2/sub3/sub4/include-test2.scad>
+
+//Test with empty path
+include <include-test5.scad>
+
+//Test without preceeding space
+include<include-test5.scad>
+
+//Test with other strange character that is allowed
+include>>>>><include-test5.scad>
+
+//Test that filenames with spaces work
+include <include test6.scad>
+
+//Test with empty file
+include<test/>
+
+//Test with empty path and file
+include </>
+
+//Test with empty
+include <>
+
+module test1()
+{
+ test2();
+ test3();
+ test4();
+ test5();
+ test6();
+
+ //Just to give a top level object
+ sphere(1);
+}
+
+test1();
contact: Jan Huwald // Impressum