Merge branch 'master' into master

This commit is contained in:
RonaldoCMP
2020-07-24 14:47:25 +01:00
committed by GitHub
35 changed files with 287 additions and 127 deletions

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/hull.scad>
include <../std.scad>
include <../hull.scad>
testpoints_on_sphere = [ for(p =

View File

@@ -1,5 +1,5 @@
include<BOSL2/std.scad>
include<BOSL2/polyhedra.scad>
include<../std.scad>
include<../polyhedra.scad>
$fn=96;

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_ident() {

View File

@@ -33,9 +33,13 @@ module test_in_list() {
assert(in_list("bar", ["foo", "bar", "baz"]));
assert(!in_list("bee", ["foo", "bar", "baz"]));
assert(in_list("bar", [[2,"foo"], [4,"bar"], [3,"baz"]], idx=1));
assert(!in_list(undef, [3,4,5]));
assert(in_list(undef,[3,4,undef,5]));
assert(!in_list(3,[]));
assert(!in_list(3,[4,5,[3]]));
assert(!in_list("bee", ["foo", "bar", ["bee"]]));
assert(in_list(NAN, [NAN])==false);
}
test_in_list();

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_point2d() {

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/cubetruss.scad>
include <../std.scad>
include <../cubetruss.scad>
module test_cubetruss_dist() {

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_standard_anchors() {

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_is_edge_array() {

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
// Can't test echo output as yet. Include these for coverage calculations.

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_point_on_segment2d() {

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/linear_bearings.scad>
include <../std.scad>
include <../linear_bearings.scad>
module test_get_lmXuu_bearing_diam() {

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
// Simple Calculations

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_HSL() {

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_square() {

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/strings.scad>
include <../std.scad>
include <../strings.scad>
function rec_cmp(a,b,eps=1e-9) =

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/queues.scad>
include <../std.scad>
include <../queues.scad>
module test_queue_init() {

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/hull.scad>
include <../std.scad>
include <../hull.scad>
module test_prismoid() {

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_turtle() {

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/skin.scad>
include <../std.scad>
include <../skin.scad>
module test_skin() {

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/stacks.scad>
include <../std.scad>
include <../stacks.scad>
module test_stack_init() {

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/strings.scad>
include <../std.scad>
include <../strings.scad>
module test_upcase() {

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/structs.scad>
include <../std.scad>
include <../structs.scad>
module test_struct_set() {

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_translate() {

View File

@@ -9,10 +9,11 @@ module test_is_vector() {
assert(is_vector(1) == false);
assert(is_vector("foo") == false);
assert(is_vector(true) == false);
assert(is_vector([0,0],nonzero=true) == false);
assert(is_vector([0,1e-12,0],nonzero=true) == false);
assert(is_vector([0,1e-6,0],nonzero=true) == true);
assert(is_vector([0,1e-6,0],nonzero=true,eps=1e-4) == false);
assert(is_vector([0,0,0],zero=true) == true);
assert(is_vector([0,0,0],zero=false) == false);
assert(is_vector([0,1,0],zero=true) == false);
assert(is_vector([0,0,1],zero=false) == true);
}
test_is_vector();

View File

@@ -1,4 +1,4 @@
include <BOSL2/std.scad>
include <../std.scad>
module test_bosl_version() {

View File

@@ -1,5 +1,5 @@
include <BOSL2/std.scad>
include <BOSL2/vnf.scad>
include <../std.scad>
include <../vnf.scad>
module test_is_vnf() {