mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
add test case to reproduce
This commit is contained in:
@@ -79,6 +79,16 @@ void test_doFlow() {
|
|||||||
result = process_doFlow(analogs, digits);
|
result = process_doFlow(analogs, digits);
|
||||||
TEST_ASSERT_EQUAL_STRING(expected, result.c_str());
|
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());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user