1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-20 22:21:52 +02:00

added test

This commit is contained in:
Justin Lin 2017-05-25 09:43:10 +08:00
parent 8e6ba3089e
commit e2e3178193

10
test/test_shape_pie.scad Normal file
View File

@ -0,0 +1,10 @@
include <unittest.scad>;
include <shape_pie.scad>;
echo("==== test_shape_pie ====");
expected = [[0, 0], [7.07107, 7.07107], [5, 8.66025], [2.58819, 9.65926], [0, 10], [-2.58819, 9.65926], [-5, 8.66025], [-7.07107, 7.07107], [-8.66025, 5], [-9.65926, 2.58819], [-10, 0], [-9.65926, -2.58819], [-8.66025, -5], [-7.07107, -7.07107], [-5, -8.66025], [-2.58819, -9.65926], [0, -10], [2.58819, -9.65926], [5, -8.66025], [7.07107, -7.07107]];
actual = shape_pie(10, [45, 315], $fn = 24);
assertEqualPoints(expected, actual);