/ test / test_shape_star.scad
test_shape_star.scad
 1  use <unittest.scad>
 2  use <shape_star.scad>
 3  
 4  module test_shape_star() {
 5      echo("==== test_shape_star ====");
 6  
 7      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]];
 8  
 9      actual = shape_star(30, 12, 6);
10  
11      assertEqualPoints(expected, actual);
12  }
13  
14  test_shape_star();