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

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "SchereSteinPapier.h"
  4. void setUp(void)
  5. {
  6. }
  7. void tearDown(void)
  8. {
  9. }
  10. void test_Scheresteinpapier_generateRandom(void) {
  11. srand(42);
  12. for (int i = 0; i < 100; ++i) {
  13. int result = generateRandom();
  14. TEST_ASSERT_TRUE(result >= 0 && result <= 2);
  15. }
  16. }
  17. #endif // TEST