mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-16 13:50:05 +01:00
15 lines
664 B
OpenSCAD
15 lines
664 B
OpenSCAD
use <unittest.scad>
|
|
use <shape_circle.scad>
|
|
|
|
module test_shape_circle() {
|
|
echo("==== test_shape_circle ====");
|
|
|
|
$fn = 24;
|
|
|
|
expected = [[50, 0], [48.2963, 12.941], [43.3013, 25], [35.3553, 35.3553], [25, 43.3013], [12.941, 48.2963], [0, 50], [-12.941, 48.2963], [-25, 43.3013], [-35.3553, 35.3553], [-43.3013, 25], [-48.2963, 12.941], [-50, 0], [-48.2963, -12.941], [-43.3013, -25], [-35.3553, -35.3553], [-25, -43.3013], [-12.941, -48.2963], [0, -50], [12.941, -48.2963], [25, -43.3013], [35.3553, -35.3553], [43.3013, -25], [48.2963, -12.941]];
|
|
actual = shape_circle(radius = 50);
|
|
|
|
assertEqualPoints(expected, actual);
|
|
}
|
|
|
|
test_shape_circle(); |