Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: tests.h
- Revision:
- 64:b373b6bf8255
- Parent:
- 63:ec95e155fb30
--- a/tests.h Thu May 09 11:04:28 2019 +0000 +++ b/tests.h Thu May 09 11:45:21 2019 +0000 @@ -16,25 +16,25 @@ } else { printf("miner movement test failed!\n"); - tests_failed++; // Increment number of failures + tests_failed++; } - // Print out the result of this test + // checks test 2 if (test_passed2) { printf("gravity test passed!\n"); } else { printf("gravity test failed!\n"); - tests_failed++; // Increment number of failures + tests_failed++; } - + // displayes message if any tests failed if (tests_failed > 0) { printf("%d tests FAILED!\n",tests_failed); } + // displays message if all tests passed else { printf("All tests passed!\n"); } - return tests_failed; }