1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 02:34:12 +02:00

updated testcase

This commit is contained in:
Justin Lin
2017-05-26 08:49:57 +08:00
parent 1c7e9a78c2
commit e93c9f7f92

View File

@@ -4,7 +4,7 @@ include <shape_pie.scad>;
module test_shape_pie() {
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]];
expected = [[0, 0], [7.0711, 7.0711], [5, 8.6603], [2.5882, 9.6593], [0, 10], [-2.5882, 9.6593], [-5, 8.6603], [-7.0711, 7.0711], [-8.6603, 5], [-9.6593, 2.5882], [-10, 0], [-9.6593, -2.5882], [-8.6603, -5], [-7.0711, -7.0711], [-5, -8.6603], [-2.5882, -9.6593], [0, -10], [2.5882, -9.6593], [5, -8.6603], [7.0711, -7.0711]];
actual = shape_pie(10, [45, 315], $fn = 24);