From 716f48c450c7bf668fc7d3a5c76a65e0e73b7afa Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 1 Mar 2022 09:04:42 +0800 Subject: [PATCH] update test --- test/test_shape_star.scad | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/test_shape_star.scad b/test/test_shape_star.scad index 810c3a35..9760ce61 100644 --- a/test/test_shape_star.scad +++ b/test/test_shape_star.scad @@ -1,14 +1,16 @@ use ; -use ; +use ; -module test_shape_starburst() { - echo("==== test_shape_starburst ===="); +module test_shape_star() { + echo("==== test_shape_star ===="); - 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]]; + 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_starburst(30, 12, 6); + actual = shape_star(30, 12, 6); + + echo(actual); assertEqualPoints(expected, actual); } -test_shape_starburst(); \ No newline at end of file +test_shape_star(); \ No newline at end of file