Added tests for the SuperLoop in finite iterations mode.
This commit is contained in:
parent
af0f7ea103
commit
2628c0be9c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue