瀏覽代碼

merge fixes

Frank Haverland 2 年之前
父節點
當前提交
295038a881
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 1 1
      code/components/jomjol_flowcontroll/ClassFlowCNNGeneral.cpp
  2. 6 1
      code/test/test_suite_flowcontroll.cpp

+ 1 - 1
code/components/jomjol_flowcontroll/ClassFlowCNNGeneral.cpp

@@ -206,7 +206,7 @@ int ClassFlowCNNGeneral::PointerEvalHybridNew(float number, float number_of_pred
     // number can still be x.6 - x.7. 
     // number can still be x.6 - x.7. 
     // Preceding (else - branch) does not already happen from 9.
     // Preceding (else - branch) does not already happen from 9.
     if (((Digital_Transition_Area_Forward>=number_of_predecessors) && (eval_predecessors == (int)number_of_predecessors)) 
     if (((Digital_Transition_Area_Forward>=number_of_predecessors) && (eval_predecessors == (int)number_of_predecessors)) 
-        || result_after_decimal_point >= 4)
+        || result_after_decimal_point >= 4) {
         // The current digit, like the previous digit, does not yet have a zero crossing. 
         // The current digit, like the previous digit, does not yet have a zero crossing. 
         result =  result_before_decimal_point % 10;
         result =  result_before_decimal_point % 10;
     }
     }

+ 6 - 1
code/test/test_suite_flowcontroll.cpp

@@ -138,6 +138,11 @@ void task_UnityTesting(void *pvParameter)
         RUN_TEST(test_doFlowPP3);
         RUN_TEST(test_doFlowPP3);
         printf("---------------------------------------------------------------------------\n");
         printf("---------------------------------------------------------------------------\n");
         RUN_TEST(test_doFlowPP4);
         RUN_TEST(test_doFlowPP4);
+        printf("---------------------------------------------------------------------------\n");
+        RUN_TEST(test_doFlowPP_rainman110);
+        printf("---------------------------------------------------------------------------\n");
+        RUN_TEST(test_doFlowPP_rainman110_transition);
+
     UNITY_END();
     UNITY_END();
 
 
     while(1);
     while(1);
@@ -155,7 +160,7 @@ extern "C" void app_main()
 
 
   UNITY_BEGIN();
   UNITY_BEGIN();
     RUN_TEST(testNegative_Issues);
     RUN_TEST(testNegative_Issues);
-   RUN_TEST(testNegative);
+    RUN_TEST(testNegative);
    
    
     RUN_TEST(test_analogToDigit_Standard);
     RUN_TEST(test_analogToDigit_Standard);
     RUN_TEST(test_analogToDigit_Transition);
     RUN_TEST(test_analogToDigit_Transition);