Add screen.[ch] and unit tests
This commit is contained in:
		| @@ -6,6 +6,20 @@ | ||||
| #include "frozen/frozen.h" | ||||
| #include "mgos_mock.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_widget(void); | ||||
| int test_screen(void); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user