1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-07-31 03:50:27 +02:00

refactor testcase

This commit is contained in:
Justin Lin
2020-01-27 16:37:38 +08:00
parent b12e5c7446
commit a6a673173f

View File

@@ -1,22 +1,20 @@
include <unittest.scad>;
use <unittest.scad>;
use <bend.scad>;
module test_bend_tri_frag(points, angle) {
expected_points = [[0, 0], [0.1927, 1.9566], [0.3854, 0], [0, 0]];
expected_angle = 11.25;
assertEqualPoints(expected_points, points);
assertEqualNum(expected_angle, angle);
}
module test_bend() {
include <bend.scad>;
echo("==== test_bend_tri_frag ====");
x = 9.25;
y = 9.55;
z = 1;
module test_bend_tri_frag(points, angle) {
echo("==== test_bend_tri_frag ====");
expected_points = [[0, 0], [0.1927, 1.9566], [0.3854, 0], [0, 0]];
expected_angle = 11.25;
assertEqualPoints(expected_points, points);
assertEqualNum(expected_angle, angle);
}
bend(size = [x, y, z], angle = 270)
linear_extrude(z) text("A");
}