From dd70aa896971699656225092ac731676e7f59747 Mon Sep 17 00:00:00 2001 From: Frank Haverland Date: Sat, 10 Sep 2022 17:06:23 +0200 Subject: [PATCH] testcase for #921 (2022-09-10) --- .../jomjol-flowcontroll/test_flowpostprocessing.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp b/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp index 258beaf3..851a997d 100644 --- a/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp +++ b/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp @@ -191,6 +191,15 @@ void test_doFlow() { result = process_doFlow(analogs, digits, Digital); TEST_ASSERT_EQUAL_STRING(expected, result.c_str()); + // Fehler bei Rolling (2002-09-09) + // https://github.com/jomjol/AI-on-the-edge-device/issues/921#issuecomment-1242730397 + digits = { 3.0, 2.0, 2.0, 8.0, 9.0, 4.0, 1.7, 9.8}; // falscher Wert 32290.420 + analogs = { }; + expected = "32289420"; + result = process_doFlow(analogs, digits); + TEST_ASSERT_EQUAL_STRING(expected, result.c_str()); + + }