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

15 lines
669 B
OpenSCAD
Raw Normal View History

2020-01-26 16:26:19 +08:00
include <unittest.scad>;
include <circle_path.scad>;
2017-06-22 18:12:29 +08:00
module test_circle_path() {
echo("==== test_circle_path ====");
2017-06-22 18:08:57 +08:00
2017-06-22 18:12:29 +08:00
$fn = 24;
2017-06-22 18:08:57 +08:00
2017-06-22 18:12:29 +08:00
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 = circle_path(radius = 50);
2017-06-22 18:08:57 +08:00
2017-06-22 18:12:29 +08:00
assertEqualPoints(expected, actual);
}
test_circle_path();