Update README

This commit is contained in:
Yuxuan Shui 2019-03-13 21:21:27 +00:00
parent 09083afa1e
commit 63a0c61f63
1 changed files with 4 additions and 2 deletions

View File

@ -34,10 +34,10 @@ TEST_CASE(test_case_name) {
In your main function, call `run_tests`:
```c
int main() {
int main(int argc, char *const *argv) {
// necessary setup code
// ...
if (!run_tests()) {
if (!run_tests(argc, argv)) {
// test failed
abort();
}
@ -46,3 +46,5 @@ int main() {
}
```
Then, run your program with `./program --unittest`.