1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/test/test_shape_starburst.scad
2020-01-27 16:18:00 +08:00

14 lines
416 B
OpenSCAD

use <unittest.scad>;
use <shape_starburst.scad>;
module test_shape_starburst() {
echo("==== test_shape_starburst ====");
expected = [[30, 0], [10.3923, 6], [15, 25.9808], [0, 12], [-15, 25.9808], [-10.3923, 6], [-30, 0], [-10.3923, -6], [-15, -25.9808], [0, -12], [15, -25.9808], [10.3923, -6]];
actual = shape_starburst(30, 12, 6);
assertEqualPoints(expected, actual);
}
test_shape_starburst();