You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
337 B

#ifdef TEST
#include "unity.h"
#include "SchereSteinPapier.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_Scheresteinpapier_generateRandom(void) {
srand(42);
for (int i = 0; i < 100; ++i) {
int result = generateRandom();
TEST_ASSERT_TRUE(result >= 0 && result <= 2);
}
}
#endif // TEST