From 218db7f7a86d0e4812ea4c07f340a167fc0df3eb Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 17 Jun 2019 08:18:54 +0800 Subject: [PATCH] update test case --- test/test_along_with.scad | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/test_along_with.scad b/test/test_along_with.scad index d8cc4280..b8b42480 100644 --- a/test/test_along_with.scad +++ b/test/test_along_with.scad @@ -15,10 +15,9 @@ module test_along_with_default_angles() { expected_angles = [[0, 0, 97.5], [0, 0, 97.5], [0, 0, 112.5], [0, 0, 127.5], [0, 0, 142.5], [0, 0, 157.5], [0, 0, 172.5], [0, 0, -172.5], [0, 0, -157.5], [0, 0, -142.5], [0, 0, -127.5], [0, 0, -112.5], [0, 0, -97.5], [0, 0, -82.5], [0, 0, -67.5], [0, 0, -52.5], [0, 0, -37.5], [0, 0, -22.5], [0, 0, -7.5], [0, 0, 7.5], [0, 0, 22.5], [0, 0, 37.5], [0, 0, 52.5], [0, 0, 67.5]]; assert($fn == len(angles)); assertEqualPoints(expected_angles, angles); - } - along_with(points) + along_with(points, method = "EULER_ANGLE") sphere(5); } @@ -37,12 +36,11 @@ module test_along_with_children() { module test_along_with_angles(angles) { expected_angles = [[0, 0, 97.5], [0, 0, 97.5], [0, 0, 112.5], [0, 0, 127.5], [0, 0, 142.5], [0, 0, 157.5], [0, 0, 172.5], [0, 0, -172.5]]; - assertEqual(8, len(angles)); + assert(8 == len(angles)); assertEqualPoints(expected_angles, angles); - } - along_with(points) { + along_with(points, method = "EULER_ANGLE") { linear_extrude(10, center = true) text("A", valign = "center", halign = "center"); linear_extrude(5, center = true) circle(2); sphere(1);