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 | 4009 |
2 | jiangly | 3831 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | gamegame | 3386 |
10 | ksun48 | 3373 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 160 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
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