From 1c7e9a78c2021524f028d02bafc3aa015917eabf Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 26 May 2017 08:49:21 +0800 Subject: [PATCH] updated testcase --- test/test_shape_ellipse.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_shape_ellipse.scad b/test/test_shape_ellipse.scad index 9878aa9f..b24b88e7 100644 --- a/test/test_shape_ellipse.scad +++ b/test/test_shape_ellipse.scad @@ -4,7 +4,7 @@ include ; module test_shape_ellipse() { echo("==== test_shape_ellipse ===="); - expected = [[40, 0], [39.1259, 4.15823], [36.5418, 8.13473], [32.3607, 11.7557], [26.7652, 14.8629], [20, 17.3205], [12.3607, 19.0211], [4.18114, 19.8904], [-4.18114, 19.8904], [-12.3607, 19.0211], [-20, 17.3205], [-26.7652, 14.8629], [-32.3607, 11.7557], [-36.5418, 8.13473], [-39.1259, 4.15823], [-40, 0], [-39.1259, -4.15823], [-36.5418, -8.13473], [-32.3607, -11.7557], [-26.7652, -14.8629], [-20, -17.3205], [-12.3607, -19.0211], [-4.18114, -19.8904], [4.18114, -19.8904], [12.3607, -19.0211], [20, -17.3205], [26.7652, -14.8629], [32.3607, -11.7557], [36.5418, -8.13473], [39.1259, -4.15823]]; + expected = [[40, 0], [39.1259, 4.1582], [36.5418, 8.1347], [32.3607, 11.7557], [26.7652, 14.8629], [20, 17.3205], [12.3607, 19.0211], [4.1811, 19.8904], [-4.1811, 19.8904], [-12.3607, 19.0211], [-20, 17.3205], [-26.7652, 14.8629], [-32.3607, 11.7557], [-36.5418, 8.1347], [-39.1259, 4.1582], [-40, 0], [-39.1259, -4.1582], [-36.5418, -8.1347], [-32.3607, -11.7557], [-26.7652, -14.8629], [-20, -17.3205], [-12.3607, -19.0211], [-4.1811, -19.8904], [4.1811, -19.8904], [12.3607, -19.0211], [20, -17.3205], [26.7652, -14.8629], [32.3607, -11.7557], [36.5418, -8.1347], [39.1259, -4.1582]]; actual = shape_ellipse([40, 20]);