mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
14 lines
549 B
OpenSCAD
14 lines
549 B
OpenSCAD
use <unittest.scad>
|
|
use <shape_pie.scad>
|
|
|
|
module test_shape_pie() {
|
|
echo("==== test_shape_pie ====");
|
|
|
|
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);
|
|
|
|
assertEqualPoints(expected, actual);
|
|
}
|
|
|
|
test_shape_pie(); |