summaryrefslogtreecommitdiff
path: root/testdata/scad/features/include-test.scad
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-05-01 04:40:57 (GMT)
committerMarius Kintel <marius@kintel.net>2011-05-01 04:40:57 (GMT)
commit50e59e94e25fd500ec8bcaef869da53674040ab4 (patch)
tree64ea315a7258a97457cefb6506c9b443cfc1d9ec /testdata/scad/features/include-test.scad
parent75c06de2db9c3ae78f842187b86b736453cba0c1 (diff)
Reorganized regression test folders
Diffstat (limited to 'testdata/scad/features/include-test.scad')
-rw-r--r--testdata/scad/features/include-test.scad40
1 files changed, 40 insertions, 0 deletions
diff --git a/testdata/scad/features/include-test.scad b/testdata/scad/features/include-test.scad
new file mode 100644
index 0000000..5db02d7
--- /dev/null
+++ b/testdata/scad/features/include-test.scad
@@ -0,0 +1,40 @@
+//Test that the entire path is pushed onto the stack upto the last '/'
+include <sub1/sub2/sub3/sub4/include-test2.scad>
+
+//Test that a non existent path/file doesn't screw things up
+include <non/existent/path/non-file>
+
+//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