1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 05:52:16 +02:00

add tests

This commit is contained in:
Justin Lin
2022-05-13 07:58:14 +08:00
parent b4c5c16451
commit 7b301bdc74
5 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
use <voxel/vx_circle.scad>;
use <util/contains.scad>;
module test_contains() {
echo("==== test_contains ====");
pts = vx_circle(10);
assert(contains(pts, [2, -10]));
assert(!contains(pts, [0, 0]));
}
test_contains();