From b0e7283d2bc9365e68439bd37b166304f7675d1d Mon Sep 17 00:00:00 2001 From: Frank Haverland Date: Thu, 13 Oct 2022 22:40:33 +0200 Subject: [PATCH] added lokal test case --- .../test_flowpostprocessing.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp b/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp index c45b0c83..47c61775 100644 --- a/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp +++ b/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp @@ -395,6 +395,22 @@ void test_doFlow() { result = process_doFlow(analogs, digits, Digital100, false, true, -3); TEST_ASSERT_EQUAL_STRING(expected_extended, result.c_str()); + + // Fehler bei rolling post V12.0.1 + // lokal watermeter1 + digits = { 0.0, 0.0, 9.0, 1.0}; //91.88174 als falsches Ergebnis + analogs = {9.0, 8.0, 1.8, 7.4}; + expected = "90.8817"; + expected_extended= "90.88174"; + + // extendResolution=false + result = process_doFlow(analogs, digits, Digital100, false, false, 0); + TEST_ASSERT_EQUAL_STRING(expected, result.c_str()); + + // checkConsistency=false und extendResolution=true + result = process_doFlow(analogs, digits, Digital100, false, true, 0); + TEST_ASSERT_EQUAL_STRING(expected_extended, result.c_str()); + }