mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 09:44:16 +02:00
updated testcase
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
include <unittest.scad>;
|
||||
|
||||
module test_line2d_cap_square() {
|
||||
echo("==== test_line2d_cap_square ====");
|
||||
|
||||
module test_line2d() {
|
||||
$fn = 24;
|
||||
|
||||
p1 = [0, 0];
|
||||
p2 = [5, 0];
|
||||
width = 1;
|
||||
|
||||
module test_line2d_cap_square() {
|
||||
echo("==== test_line2d_cap_square ====");
|
||||
|
||||
include <line2d.scad>;
|
||||
|
||||
module cap(point, style) {
|
||||
@@ -26,17 +26,11 @@ module test_line2d_cap_square() {
|
||||
}
|
||||
|
||||
line2d(p1 = p1, p2 = p2, width = width);
|
||||
}
|
||||
}
|
||||
|
||||
module test_line2d_cap_round() {
|
||||
module test_line2d_cap_round() {
|
||||
echo("==== test_line2d_cap_round ====");
|
||||
|
||||
$fn = 24;
|
||||
|
||||
p1 = [0, 0];
|
||||
p2 = [5, 0];
|
||||
width = 1;
|
||||
|
||||
include <line2d.scad>;
|
||||
|
||||
module cap(point, style) {
|
||||
@@ -55,17 +49,11 @@ module test_line2d_cap_round() {
|
||||
|
||||
line2d(p1 = p1, p2 = p2, width = width,
|
||||
p1Style = "CAP_ROUND", p2Style = "CAP_ROUND");
|
||||
}
|
||||
}
|
||||
|
||||
module test_line2d_cap_butt() {
|
||||
module test_line2d_cap_butt() {
|
||||
echo("==== test_line2d_cap_butt ====");
|
||||
|
||||
$fn = 24;
|
||||
|
||||
p1 = [0, 0];
|
||||
p2 = [5, 0];
|
||||
width = 1;
|
||||
|
||||
include <line2d.scad>;
|
||||
|
||||
module cap(point, style) {
|
||||
@@ -84,8 +72,12 @@ module test_line2d_cap_butt() {
|
||||
|
||||
line2d(p1 = p1, p2 = p2, width = width,
|
||||
p1Style = "CAP_BUTT", p2Style = "CAP_BUTT");
|
||||
}
|
||||
|
||||
test_line2d_cap_square();
|
||||
test_line2d_cap_round();
|
||||
test_line2d_cap_butt();
|
||||
}
|
||||
|
||||
test_line2d_cap_square();
|
||||
test_line2d_cap_round();
|
||||
test_line2d_cap_butt();
|
||||
test_line2d();
|
||||
|
||||
|
Reference in New Issue
Block a user