Skip to content

Commit 5a13c71

Browse files
change region test
1 parent 7b93b42 commit 5a13c71

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/test_regions.scad

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,20 @@ test_point_in_region();
128128
module test_make_region(){
129129
pentagram = turtle(["move",100,"left",144], repeat=4);
130130
region1 = make_region(pentagram);
131-
assert_approx(region1,
131+
assert(are_regions_equal(region1,
132132
[[[0, 0], [38.196601125, 0], [30.9016994375, 22.451398829]], [[50,
133133
36.3271264003], [19.0983005625, 58.7785252292], [30.9016994375,
134134
22.451398829]], [[69.0983005625, 22.451398829], [50, 36.3271264003],
135135
[80.9016994375, 58.7785252292]], [[61.803398875, 3.5527136788e-15],
136136
[69.0983005625, 22.451398829], [100, 0]], [[38.196601125, 0],
137-
[61.803398875, 3.94430452611e-31], [50, -36.3271264003]]]);
137+
[61.803398875, 3.94430452611e-31], [50, -36.3271264003]]]));
138+
/*assert_approx(region1,
139+
[[[0, 0], [38.196601125, 0], [30.9016994375, 22.451398829]], [[50,
140+
36.3271264003], [19.0983005625, 58.7785252292], [30.9016994375,
141+
22.451398829]], [[69.0983005625, 22.451398829], [50, 36.3271264003],
142+
[80.9016994375, 58.7785252292]], [[61.803398875, 3.5527136788e-15],
143+
[69.0983005625, 22.451398829], [100, 0]], [[38.196601125, 0],
144+
[61.803398875, 3.94430452611e-31], [50, -36.3271264003]]]);*/
138145
region2 = make_region(pentagram,nonzero=true);
139146
assert_approx(region2,
140147
[[[0, 0], [38.196601125, 0], [50, -36.3271264003],

0 commit comments

Comments
 (0)