clear
echo "Watching for changes..."

run_tests() {
    rm tests > /dev/null
    clear
    gcc -o tests tests.c funcs.c -std=c99 -Wall
    ./tests
}
run_tests

while true; do
    change=$(inotifywait -q -e close_write,moved_to,create {*.c,*.h})
    change=${change#./ * }
    run_tests
done

Add a helpful unit_test script that watches our source code and re-runs our unit tests when our code changes.
Add a helpful unit_test script that watches our source code and re-runs our unit tests when our code changes.
