Added tests for the SuperLoop in finite iterations mode.

This commit is contained in:
jakeg00dwin 2024-09-01 12:23:34 -07:00
parent af0f7ea103
commit 2628c0be9c
1 changed files with 7 additions and 9 deletions

View File

@ -24,15 +24,13 @@ TEST_GROUP(test_SuperLoop)
}
};
TEST(test_SuperLoop, FirstTest)
{
FAIL("Fail me!");
TEST(test_SuperLoop, LoopIterationsFiniteWork){
for(uint8_t i = 1; i < 255; i++){
SuperLoop_SetIterations(i);
uint8_t num_iterations = SuperLoop_Run();
CHECK_EQUAL(i, num_iterations);
}
}
TEST(test_SuperLoop, SecondTest)
{
STRCMP_EQUAL("hello", "world");
LONGS_EQUAL(1, 2);
CHECK(false);
}