/* This file is part of the Simba project.  */
static int test_input_single_frame(void)
/* This file is part of the Simba project.  */
static int test_input_single_frame(void)
{
    struct isotp_t isotp;
    uint8_t buf[8];
    uint8_t frame[8];
    BTASSERT(isotp_init(&isotp, &buf[0], sizeof(buf), 0) == 0);
    frame[0] = (0 << 4) | 3;
    frame[1] = 'f';
    frame[2] = 'o';
    frame[3] = 'o';
    BTASSERT(isotp_input(&isotp, &frame[0], 4) == 3);
    BTASSERT(memcmp(&buf[0], "foo", 3) == 0);
    return (0);
}