diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-12 19:47:51 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-12 19:47:51 (GMT) |
commit | 170c506ab789cafa4369d56f29a92f33329a9a3e (patch) | |
tree | 5914d93e1b70260d48f0f3aeb6cc58bc783e3add /testdata | |
parent | 8fd4c478350635cdf028352edd0ec46a6785593e (diff) | |
parent | acf4c1262b955c298e3cf792c8b3f3cead92fd09 (diff) |
Merge branch 'length-function'
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/scad/features/len-tests.scad | 12 | ||||
-rw-r--r-- | testdata/scad/minimal/allfunctions.scad | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/testdata/scad/features/len-tests.scad b/testdata/scad/features/len-tests.scad new file mode 100644 index 0000000..fba7ae1 --- /dev/null +++ b/testdata/scad/features/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 diff --git a/testdata/scad/minimal/allfunctions.scad b/testdata/scad/minimal/allfunctions.scad index ef21a90..2aebe54 100644 --- a/testdata/scad/minimal/allfunctions.scad +++ b/testdata/scad/minimal/allfunctions.scad @@ -24,3 +24,4 @@ a = dxf_dim(); a = dxf_cross(); a = version(); a = version_num(); +a = len(); |