mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 09:44:16 +02:00
updated testcase
This commit is contained in:
@@ -33,7 +33,7 @@ function all_shift_to_int(points, digits) =
|
|||||||
[for(pt = points) shift_to_int(pt, digits) / digits];
|
[for(pt = points) shift_to_int(pt, digits) / digits];
|
||||||
|
|
||||||
module assertEqualPoint(expected, actual) {
|
module assertEqualPoint(expected, actual) {
|
||||||
n = 100000;
|
n = 10000;
|
||||||
|
|
||||||
shifted_expected = shift_to_int(
|
shifted_expected = shift_to_int(
|
||||||
expected, n
|
expected, n
|
||||||
|
@@ -24,7 +24,7 @@ module test_rounded_square_size_corner_center() {
|
|||||||
module test_rounded_square(position, points) {
|
module test_rounded_square(position, points) {
|
||||||
assertEqualPoint([0, 0], position);
|
assertEqualPoint([0, 0], position);
|
||||||
assertEqualPoints(
|
assertEqualPoints(
|
||||||
[[20, -12.5], [21.9471, -12.1053], [23.5868, -10.9835], [24.6602, -9.31178], [25, -7.5], [25, 7.5], [24.6053, 9.44709], [23.4835, 11.0868], [21.8118, 12.1602], [20, 12.5], [-20, 12.5], [-21.8118, 12.1602], [-23.4835, 11.0868], [-24.6053, 9.44709], [-25, 7.5], [-25, -7.5], [-24.6602, -9.31178], [-23.5868, -10.9835], [-21.9471, -12.1053], [-20, -12.5]],
|
[[20, -12.5], [21.9471, -12.1053], [23.5868, -10.9835], [24.6602, -9.3118], [25, -7.5], [25, 7.5], [24.6053, 9.4471], [23.4835, 11.0868], [21.8118, 12.1602], [20, 12.5], [-20, 12.5], [-21.8118, 12.1602], [-23.4835, 11.0868], [-24.6053, 9.4471], [-25, 7.5], [-25, -7.5], [-24.6602, -9.3118], [-23.5868, -10.9835], [-21.9471, -12.1053], [-20, -12.5]],
|
||||||
points
|
points
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user