assert.c 338 B

12345678910111213141516171819
  1. #include <assert.h>
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4. #include "test_helpers.h"
  5. int main(void) {
  6. assert(1 == 1);
  7. assert(1 + 1 == 2);
  8. puts("yay!");
  9. if (assert(0 == 0), 1) {
  10. puts("groovy!");
  11. }
  12. //This fails, but I can't test it because that'd
  13. //make the test fail lol
  14. //assert(42 == 1337);
  15. }