diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-12 19:53:12 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-12 19:53:12 (GMT) |
commit | 9c14544a92bfd44ab230192a3b74c319f6fe0cc9 (patch) | |
tree | 38f96c60caa2f2fbaa0b0178ce4c2714498cab3b /testdata/scad/functions | |
parent | 170c506ab789cafa4369d56f29a92f33329a9a3e (diff) |
Hooked up function tests
Diffstat (limited to 'testdata/scad/functions')
-rw-r--r-- | testdata/scad/functions/len-tests.scad | 12 |
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 |