Hi,
Is there any program that can test a program on a large set of .in files against a large set of .out files? I heard about Ineffable, but I also heard it's really buggy.
Thanks!
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
Name |
---|
If you use Linux, here is the command you are looking for:
What it does is loop over all files having extension .in (this is the value of i), then j becomes the filename without the extension and after that it just runs your code with j.in, saves your output in myj.out and compares it to the correct output j.out.
Here is what it should look like if among 10 cases, the 7th one fails:
Thanks! very useful
I'm trying to extend this to files of the type I.(number) and O.(number). The current line I have is this:
Unfortunately it seems to be failing to get the proper j (it thinks it is the character
I
). I am not very experienced with this kind of thing (I don't even know what it's called). Could you please tell me how I can get it to obtain the proper j values?What this does is remove the longest match of *. from the front of i, which results into the extension we need. I also don't know a lot about bash, just a few things I find helpful for testing.
Thanks! Seems to work.
Does anyone have a good solution for people who don't use Linux?
Yes.
For windows this works, if you want to test main.exe with all the pairs (x.in,x.ans) in the folder you do: $run.bat main
You can start with this .bat and try to improve it