#ifndef __TEST_H #define __TEST_H #include #include #include "frozen/frozen.h" #include "mgos_mock.h" #include "main.h" extern int test_failures; extern int assert_count; #define ASSERT(expr, errstr) \ do { \ if (!(expr)) { \ LOG(LL_ERROR, ("ASSERT FAIL: "errstr)); \ test_failures++; \ } \ assert_count++; \ } while (0) int test_buttons(void); #endif // __TEST_H