nandgate / UnitTest

Unit testing framework for embedded C code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return sequences may not be working correctly

nandgate opened this issue · comments

Investigate that return sequences from mocks are working correctly. Based on usage in the field this may not be working correctly for the last item of the sequence. Verify that:

int seq[]= {1, 2, 3};
Mock_ReturnSequence(fn, 3, seq);

Results in the following sequence:

fn() -> 1
fn() -> 2
fn() -> 3
fn() -> 3

This is just a "for instance" case, investigate the sequence usage generally.