We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 143f883 commit 2b3ff96Copy full SHA for 2b3ff96
.github/workflows/tests.yml
@@ -1,8 +1,6 @@
1
name: level1-challenge-test
2
3
-on:
4
- pull_request:
5
- branches: [level1]
+on: [push, pull_request]
6
7
jobs:
8
build:
@@ -11,7 +9,7 @@ jobs:
11
9
pull-requests: write
12
10
steps:
13
- name: Checkout Repo
14
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
15
- name: Build Application
16
run: make all
17
- name: Run Tests
challenge.h
@@ -5,6 +5,6 @@
#include <stdint.h>
-#define ASSERT(x) if (!(x)) { printf("ASSERTION FAILED: %s\n", #x); } else { printf("ASSERTION PASSED: %s\n", #x); }
+#define ASSERT(x) if (!(x)) { printf("ASSERTION FAILED: %s\n", #x); exit(1); } else { printf("ASSERTION PASSED: %s\n", #x); }
-#endif // CHALLENGE_H
+#endif // CHALLENGE_H
0 commit comments