Skip to content

Egor batch output when there is a diff is wrong #78

@Eroui

Description

@Eroui

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions