assert.c 311 B

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