Skip to content

Commit 6edce1e

Browse files
committed
test, chore: adjusted platformio.ini accordingly and test comments
1 parent 8ba39a0 commit 6edce1e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

platformio.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
platform = espressif32
1313
board = esp32-s3-devkitc-1
1414
framework = arduino
15+
test_framework = unity
16+
test_build_src = yes
17+
monitor_speed = 115200
18+
build_flags =
19+
-DUNITY_INCLUDE_DOUBLE
20+
-DUNITY_DOUBLE_PRECISION=1e-12
1521
lib_deps =
1622
https://github.com/eloquentarduino/EloquentTinyML.git
1723
https://github.com/arrhythmia-detection/tflm_esp32.git

test/test_on_esp32_board/test_lib_tflm_wrapper_esp32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void test_prediction_class() {
4949

5050
void test_prediction_output_range() {
5151
testMLP.predict(test_inputs);
52-
// Check if all output probabilities are between 0 and 1
52+
// Check if all output probabilities are between 0 and 1 (SOFTMAX Activiation Function)
5353
for (u_int16_t i = 0; i < TF_NUM_OUTPUTS; i++) {
5454
TEST_ASSERT_TRUE(testMLP.outputs[i] >= 0.0f && testMLP.outputs[i] <= 1.0f);
5555
}

0 commit comments

Comments
 (0)