No description or website provided.
Rust
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Cargo.toml
LICENSE
README.md

README.md

contest-runner

Looks for files in current directory with names like:

input01.txt
input02.txt
output01.txt
output02.txt

And executes binary file (a.out or specified as a first argument) on each of the input file contents, comparing output with corresponding output file contents. Reports number of failures/successes.

Usage example

$ ls
a.out        input02.txt  input04.txt  input06.txt   output02.txt  output04.txt  output06.txt
input01.txt  input03.txt  input05.txt  output01.txt  output03.txt  output05.txt
$ contest_runner
6 testcases found
...E..
Failed testcases:
Testcase { input: "input03.txt", output: "output03.txt" }:
 Name1
 Not Found!
 HelloWorld
-Fsad
+Fsa