summaryrefslogtreecommitdiff
path: root/testdata/scad/functions
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-12 19:53:12 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-12 19:53:12 (GMT)
commit9c14544a92bfd44ab230192a3b74c319f6fe0cc9 (patch)
tree38f96c60caa2f2fbaa0b0178ce4c2714498cab3b /testdata/scad/functions
parent170c506ab789cafa4369d56f29a92f33329a9a3e (diff)
Hooked up function tests
Diffstat (limited to 'testdata/scad/functions')
-rw-r--r--testdata/scad/functions/len-tests.scad12
1 files changed, 12 insertions, 0 deletions
diff --git a/testdata/scad/functions/len-tests.scad b/testdata/scad/functions/len-tests.scad
new file mode 100644
index 0000000..fba7ae1
--- /dev/null
+++ b/testdata/scad/functions/len-tests.scad
@@ -0,0 +1,12 @@
+a=[1,2,3,4];
+b="abcd";
+c=[];
+d="";
+e=[[1,2,3,4],[1,2,3]];
+echo(len(a));
+echo(len(b));
+echo(len(c));
+echo(len(d));
+echo(len(e));
+echo(len(e[1]));
+echo(len(e[2])); \ No newline at end of file
contact: Jan Huwald // Impressum