![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: tests.h
- Revision:
- 69:55e309da7efd
- Parent:
- 68:b9cfd27987ac
- Child:
- 74:7b6568bc16d5
diff -r b9cfd27987ac -r 55e309da7efd tests.h --- a/tests.h Sat May 04 16:56:04 2019 +0000 +++ b/tests.h Sat May 04 17:18:44 2019 +0000 @@ -19,12 +19,11 @@ // Print out the result of this test if (this_test_passed) { printf("...Passed!\n"); - } - else { + } else { printf("...FAILED!\n"); ++n_tests_failed; // Increment number of failures } - + // Repeat the above for each testing function... // ... // ... @@ -32,8 +31,7 @@ // Finish by printing a summary of the tests if (n_tests_failed > 0) { printf("%d tests FAILED!\n", n_tests_failed); - } - else { + } else { printf("All tests passed!\n"); }