From ecc62a3ba9b0faf83baa1a10c221bb25f1c35eec Mon Sep 17 00:00:00 2001 From: Frank Haverland Date: Mon, 22 Aug 2022 21:01:44 +0200 Subject: [PATCH] add test case to reproduce --- .../jomjol-flowcontroll/test_flowpostprocessing.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp b/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp index 4e07efef..591c1c2b 100644 --- a/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp +++ b/code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp @@ -79,6 +79,16 @@ void test_doFlow() { result = process_doFlow(analogs, digits); TEST_ASSERT_EQUAL_STRING(expected, result.c_str()); + /* + * https://github.com/jomjol/AI-on-the-edge-device/issues/921 + * + * Das Ergebnis sollte "376529.6" sein. Bzw. 16.98 ohne Extended true + */ + digits = { 2.9, 7.0, 6.8, 9.9, 8.0, 3.9}; + analogs = { 9.7}; + expected = "377083.9"; + result = process_doFlow(analogs, digits); + TEST_ASSERT_EQUAL_STRING(expected, result.c_str()); }