1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-20 06:02:05 +02:00

added test

This commit is contained in:
Justin Lin 2017-05-25 11:34:05 +08:00
parent a19786b7d7
commit a93c824a5f

View File

@ -0,0 +1,8 @@
include <unittest.scad>;
include <shape_square.scad>;
expected = [[20, -25], [21.9471, -24.6053], [23.5868, -23.4835], [24.6602, -21.8118], [25, -20], [25, 20], [24.6053, 21.9471], [23.4835, 23.5868], [21.8118, 24.6602], [20, 25], [-20, 25], [-21.8118, 24.6602], [-23.4835, 23.5868], [-24.6053, 21.9471], [-25, 20], [-25, -20], [-24.6602, -21.8118], [-23.5868, -23.4835], [-21.9471, -24.6053], [-20, -25]];
actual = shape_square(size = 50, corner_r = 5);
assertEqualPoints(expected, actual);