mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-30 09:40:04 +02:00
Merge branch 'master' into master
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/hull.scad>
|
||||
include <../std.scad>
|
||||
include <../hull.scad>
|
||||
|
||||
|
||||
testpoints_on_sphere = [ for(p =
|
||||
|
@@ -1,5 +1,5 @@
|
||||
include<BOSL2/std.scad>
|
||||
include<BOSL2/polyhedra.scad>
|
||||
include<../std.scad>
|
||||
include<../polyhedra.scad>
|
||||
|
||||
|
||||
$fn=96;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_ident() {
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_point2d() {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/cubetruss.scad>
|
||||
include <../std.scad>
|
||||
include <../cubetruss.scad>
|
||||
|
||||
|
||||
module test_cubetruss_dist() {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_standard_anchors() {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_is_edge_array() {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
// Can't test echo output as yet. Include these for coverage calculations.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_point_on_segment2d() {
|
||||
|
@@ -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() {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
// Simple Calculations
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_HSL() {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_square() {
|
||||
|
@@ -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) =
|
||||
|
@@ -1,5 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/queues.scad>
|
||||
include <../std.scad>
|
||||
include <../queues.scad>
|
||||
|
||||
|
||||
module test_queue_init() {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/hull.scad>
|
||||
include <../std.scad>
|
||||
include <../hull.scad>
|
||||
|
||||
|
||||
module test_prismoid() {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_turtle() {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/skin.scad>
|
||||
include <../std.scad>
|
||||
include <../skin.scad>
|
||||
|
||||
|
||||
module test_skin() {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/stacks.scad>
|
||||
include <../std.scad>
|
||||
include <../stacks.scad>
|
||||
|
||||
|
||||
module test_stack_init() {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/strings.scad>
|
||||
include <../std.scad>
|
||||
include <../strings.scad>
|
||||
|
||||
|
||||
module test_upcase() {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/structs.scad>
|
||||
include <../std.scad>
|
||||
include <../structs.scad>
|
||||
|
||||
|
||||
module test_struct_set() {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_translate() {
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <../std.scad>
|
||||
|
||||
|
||||
module test_bosl_version() {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/vnf.scad>
|
||||
include <../std.scad>
|
||||
include <../vnf.scad>
|
||||
|
||||
|
||||
module test_is_vnf() {
|
||||
|
Reference in New Issue
Block a user