1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00

add test case

This commit is contained in:
Justin Lin 2019-06-14 08:44:02 +08:00
parent e185e9b7e9
commit 78bfb2f31d
2 changed files with 15 additions and 0 deletions

View File

@ -49,6 +49,7 @@ include <test_shape_glued2circles.scad>;
include <test_shape_pie.scad>;
include <test_shape_square.scad>;
include <test_shape_trapezium.scad>;
include <test_shape_starburst.scad>;
include <test_shape_superformula.scad>;
include <test_shape_path_extend.scad>;

View File

@ -0,0 +1,14 @@
include <unittest.scad>;
include <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();