Boilerplate for testing solutions for coding contests
- You love to solve tasks from coding contests
- You write a solution for a task
- You want to test your solution against some inputs
- You don't want to manually run your program and enter all the data after each code change
- Download this boilerplate
- Write your code in
main.go
- Put your inputs and expected outputs in
/tests
- Run
make
$ make
go test -v ./...
=== RUN Test_run
=== RUN Test_run/1
--- PASS: Test_run (0.00s)
--- PASS: Test_run/1 (0.00s)
PASS
ok contest 0.001s