diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-08-11 14:54:04 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-08-11 14:54:04 (GMT) |
commit | d2933590c23ae3a3d95bd1d2d74d03cdbb7897cc (patch) | |
tree | 0830ec04e440197b60632c838cc341b24f5c0279 /testdata | |
parent | 6900160b7d67f2b572b5b3f9d1568904acf9d52f (diff) |
fix #452
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/scad/functions/rands.scad | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testdata/scad/functions/rands.scad b/testdata/scad/functions/rands.scad new file mode 100644 index 0000000..7733dbb --- /dev/null +++ b/testdata/scad/functions/rands.scad @@ -0,0 +1,35 @@ +v1 = rands(0,0,0,0); +v2 = rands(-10,0,20,0); +v3 = rands(0,0,-20); +v4 = rands(1,2,-20); +v5 = rands(-1,-2,-20); +v6 = rands(-2,-1,-20); +v7 = rands(0,2,0,0); +v8 = rands(0,-3,-10,0); +v9 = rands(-40,-3,1000,0); +va = rands(10,200,1000,-32); +vb = rands("akhma","to","va"); + +vc = rands(0,0,-20); +vd = rands(1,2,-20); +ve = rands(-10,0,20); +vf = rands(0,2,0); +vg = rands(0,-3,0); +vh = rands(1,0,"blah"); +vi = rands(0,-3,-10); +vj = rands(-40,-3,1000); +vk = rands(10,200,1000); + +vq = rands(1, 5); +vp = rands(1, 5); +vo = rands(1); +vn = rands(); +vl = rands(v[0],v[1],v[2]); +vm = rands(1,2,-20); + +sphere(); +echo("i hope rands() did not crash"); + +v = rands(1,1,4); + +echo( v );
\ No newline at end of file |