MikolajKolek / toster

A simple-as-toast tester for C++ solutions to competitive programming exercises
MIT License
20 stars 2 forks source link

Add support for checkers #28

Closed MikolajKolek closed 1 year ago

MikolajKolek commented 1 year ago

Instead of checking if the tested program's output matches the given output files, Toster can provide a checker program (written in C++) with the contents of the input and program output, and use it to check if the output is correct. This can be implemented by adding a new flag (-c or --checker for example, replacing -c previously used for setting the compile command). The proposed protocol for checker programs would be the following: