Diff of /Tests/tools.any [000000] .. [38ba34]

Switch to side-by-side view

--- a
+++ b/Tests/tools.any
@@ -0,0 +1,39 @@
+#ifndef TESTS_TEST_TOOLS_ANY
+#define TESTS_TEST_TOOLS_ANY
+
+
+#define EXPECT_RANGE(NAME, VAR, MIN, MAX, TRIGGER, MESSAGE) AnyInt Expect_Range_##NAME = expect( orfun( not(Main.TestTrigger),  andfun(ltfun(VAR, MAX)  ,gtfun(VAR, MIN)  )  ), MESSAGE )
+
+#define OPERATION_TEST_TRIGGER(OPR, TRIGGER) Main = { \
+  OPR = \
+  {\
+    AnyOperationSetValue SetTestTrigger = \
+    {\
+      AnyInt dummyOne = 1;\
+      Source = {&dummyOne};\
+      Target = {&TRIGGER};\
+    };  \
+  };\
+  \
+}
+
+
+#class_template FixTestStudyConfig(
+  KINTOL = 1,
+  UPPERBOUND = 0,
+){ 
+  AnyVar KinematicTol ??= 1e-8;
+  
+  #if KINTOL == 1
+  AnyFolder& Kinematics = .Kinematics;
+  Kinematics.KinematicTol = KinematicTol;
+  #endif
+     
+  #if UPPERBOUND == 0
+  AnyFolder& InverseDynamics = .InverseDynamics;
+  InverseDynamics.Criterion.UpperBoundOnOff = Off;
+  #endif
+};
+
+
+#endif