1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02:00

solving namespace problem

This commit is contained in:
Justin Lin
2017-06-22 18:12:29 +08:00
parent f1ead68286
commit 40e4ba5b12
2 changed files with 11 additions and 10 deletions

View File

@@ -27,8 +27,6 @@ include <test_split_str.scad>;
include <test_parse_number.scad>; include <test_parse_number.scad>;
include <test_cross_sections.scad>; include <test_cross_sections.scad>;
// Path
include <test_circle_path.scad>;
// 2D Shape // 2D Shape
include <test_shape_arc.scad>; include <test_shape_arc.scad>;

View File

@@ -1,12 +1,15 @@
echo("==== test_circle_path ===="); module test_circle_path() {
echo("==== test_circle_path ====");
include <unittest.scad>; include <unittest.scad>;
include <circle_path.scad>; include <circle_path.scad>;
$fn = 24; $fn = 24;
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]]; 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);
actual = circle_path(radius = 50); assertEqualPoints(expected, actual);
}
assertEqualPoints(expected, actual);
test_circle_path();