mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 08:19:43 +00:00
Added regressions for cubetruss.scad
This commit is contained in:
parent
6fb40df34a
commit
3d0d34850d
2 changed files with 15 additions and 1 deletions
14
tests/test_cubetruss.scad
Normal file
14
tests/test_cubetruss.scad
Normal file
|
@ -0,0 +1,14 @@
|
|||
include <BOSL2/std.scad>
|
||||
include <BOSL2/cubetruss.scad>
|
||||
|
||||
|
||||
module test_cubetruss_dist() {
|
||||
assert(cubetruss_dist(5,1,size=30,strut=3) == 138);
|
||||
assert(cubetruss_dist(3,2,size=30,strut=3) == 87);
|
||||
assert(cubetruss_dist(5,1,size=20,strut=2) == 92);
|
||||
assert(cubetruss_dist(3,2,size=20,strut=2) == 58);
|
||||
}
|
||||
test_cubetruss_dist();
|
||||
|
||||
|
||||
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap
|
|
@ -8,7 +8,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,18];
|
||||
BOSL_VERSION = [2,0,19];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
Loading…
Reference in a new issue