diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2011-01-09 16:08:28 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2011-01-09 16:08:28 (GMT) |
commit | e0eea53ad5227894d0d1d3500239d2e747df9873 (patch) | |
tree | dd15cbadf9403fee6c57a4a1b4dfd4fcfe474de3 /testdata/scad/include-test.scad | |
parent | a6880af2753fa3623e29ce9e7b9e0d6512eec82d (diff) | |
parent | 052f8bc620f579271be69a0d0d699b8b4ac5bb14 (diff) |
Merge branch 'experiments' of git://gitorious.org/openscad/openscad into giles
git-svn-id: http://svn.clifford.at/openscad/trunk@586 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'testdata/scad/include-test.scad')
-rw-r--r-- | testdata/scad/include-test.scad | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testdata/scad/include-test.scad b/testdata/scad/include-test.scad new file mode 100644 index 0000000..5db02d7 --- /dev/null +++ b/testdata/scad/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(); |