Fix hw1 fuzzer again

This commit is contained in:
Jeehoon Kang
2020-03-28 18:29:04 +09:00
parent 938390821f
commit 2a5a5e71ed
21 changed files with 500 additions and 110 deletions

View File

@@ -39,6 +39,21 @@ cargo test <test-name> # run a particular test
## Fuzzing
We encourage you to do homework using the test-driven development approach (TDD). You randomly
generate test input, and if it fails, then reduce it as much as possible and manually inspect the
reduced test input. For example, for homework 1, do:
```sh
# randomly generates test inputs and tests them
python3 tests/fuzz.py --print
# reduces the failing test input as much as possible
python3 tests/fuzz.py --print --reduce
# fix your code for the reduced test input
cat tests/test_reduced.c
```
### Install
```sh