1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 06:08:31 +01:00
dotSCAD/test/test_shape_star.scad
2022-06-06 13:11:46 +08:00

14 lines
389 B
OpenSCAD

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