mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 22:28:16 +01:00
add test case
This commit is contained in:
parent
e185e9b7e9
commit
78bfb2f31d
@ -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>;
|
||||
|
||||
|
14
test/test_shape_starburst.scad
Normal file
14
test/test_shape_starburst.scad
Normal 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();
|
Loading…
x
Reference in New Issue
Block a user