When running an egor batch run and you get a mismatch between the brute-force and the main implementation, the message is not displayed correctly, for example :
❯ egor batch run
Running test 1
Running test 2
Found diff:
Input:
1
6
6 1 5 1 3 4
Expected:
5
Got:
3
Checker failed, token 0 does not match: expected 3, got 5
This is due to the fact that the checker is called with the wrong order of arguments, the checker is expecting to be called check(got, expected) and its actually called check(expected, got)
See https://github.com/chermehdi/go-egor/blob/master/commands/batch.go#L227
When running an
egor batch runand you get a mismatch between the brute-force and the main implementation, the message is not displayed correctly, for example :This is due to the fact that the checker is called with the wrong order of arguments, the checker is expecting to be called check(got, expected) and its actually called check(expected, got)
See https://github.com/chermehdi/go-egor/blob/master/commands/batch.go#L227