mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
14 lines
389 B
OpenSCAD
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(); |