unleashed-firmware/applications/tests/furi_record_test.c
Albert Kharisov 98830a8a41
[FL-1956] Fix long packets bug, fix Manchester overrun (#766)
Also fix RC6 test to detect this manchester bug
2021-10-16 15:00:21 +03:00

17 lines
422 B
C

#include <stdio.h>
#include <string.h>
#include <furi.h>
#include "minunit.h"
void test_furi_create_open() {
// 1. Create record
uint8_t test_data = 0;
furi_record_create("test/holding", (void*)&test_data);
// 2. Open it
void* record = furi_record_open("test/holding");
mu_assert_pointers_eq(record, &test_data);
furi_record_close("test/holding");
furi_record_destroy("test/holding");
}