chiark / gitweb /
screw-recess-test: break out OneTestCore (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 12 Feb 2015 00:08:48 +0000 (00:08 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 12 Feb 2015 00:08:48 +0000 (00:08 +0000)
screw-recess-test.scad

index 222081b..a5dab4f 100644 (file)
@@ -80,12 +80,18 @@ tests = [
 
 function Test_blocksz(t) = screw_recess_dia_use(t) + 7;
 
-module OneTest(t){
+module OneTestCore(t, h){
   blocksz = Test_blocksz(t);
-  h = RecessedScrewCutoutStandard_totaldepth(t);
   difference(){
     translate([-blocksz/2, -blocksz/2, 0])
       cube([blocksz, blocksz, h]);
+    child();
+  }
+}
+
+module OneTest(t){
+  h = RecessedScrewCutoutStandard_totaldepth(t);
+  OneTestCore(t, h){
     RecessedScrewCutoutStandard(t, h+1);
   }
 }