diff options
author | Torsten Paul <Torsten.Paul@gmx.de> | 2014-01-03 18:12:04 (GMT) |
---|---|---|
committer | Torsten Paul <Torsten.Paul@gmx.de> | 2014-01-03 18:12:04 (GMT) |
commit | c5223417e3ffe965d09d971865797206080eb0ae (patch) | |
tree | 719f3e866f4eee2039b8bd743835b3cf293f1a0d /testdata/scad/functions | |
parent | 9caa2dcfa5fb6e56f88fdcf575e74c3e821d9c52 (diff) | |
parent | 3d5b844679871131e299fd335f998e994edae31f (diff) |
Merge pull request #2 from openscad/vector-concat
Some cleanup
Diffstat (limited to 'testdata/scad/functions')
-rw-r--r-- | testdata/scad/functions/concat-tests.scad | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/testdata/scad/functions/concat-tests.scad b/testdata/scad/functions/concat-tests.scad deleted file mode 100644 index 0bcb903..0000000 --- a/testdata/scad/functions/concat-tests.scad +++ /dev/null @@ -1,53 +0,0 @@ -u = undef; - -echo("--- empty"); -echo(concat()); -echo(concat([])); -echo(concat([], [])); -echo(concat([], [], [])); - -echo("--- single elements"); -echo(concat(u)); -echo(concat(true)); -echo(concat(3)); -echo(concat("abc")); -echo(concat([0:1:10])); - -echo("--- single vectors"); -echo(concat([1, 2, 3])); -echo(concat([[1, 2, 3]])); -echo(concat([[[1, 2, 3]]])); -echo(concat([[[1, 2, [3, 4], 5]]])); - -echo("--- multiple elements"); -echo(concat(3, 3)); -echo(concat(1, 2, 3)); -echo(concat(1, 2, 3, 4, 5)); -echo(concat(1, "text", false, [1:0.5:3])); - -echo("--- vector / element"); -echo(concat([3, 4], u)); -echo(concat([3, 4, 5], 6)); -echo(concat([3, 4, 5, 6], true)); -echo(concat([3, 4, "5", 6], "test")); -echo(concat([3, 4, true, 6], [4:1:3])); - -echo("--- element / vector"); -echo(concat(3, [])); -echo(concat(3, [3, 4])); -echo(concat(true, [3, [4]])); -echo(concat("9", [1, 2, 3])); -echo(concat([6:2:9], [3, [4]])); - -echo("--- vector / vector"); -echo(concat([], [3, 4])); -echo(concat([[]], [3, 4])); -echo(concat([[2, 4]], [3, 4])); -echo(concat([5, 6], ["d", [3, 4]])); -echo(concat([[1, 0, 0], [2, 0, 0]], [3, 0, 0])); -echo(concat([[1, 0, 0], [2, 0, 0]], [[3, 0, 0]])); -echo(concat([[1, 0, 0], [2, 0, 0], [3, 0, 0]], [[4, 4, 4], [5, 5, 5]])); - -echo("--- recursive function"); -function r(i) = i > 0 ? concat(r(i - 1), [[i, i * i]]) : []; -echo(r(10)); |