-
Notifications
You must be signed in to change notification settings - Fork 6
Test
EROUI Abdelaziz edited this page Jan 14, 2021
·
1 revision
egor test or egor r will take your main solution and run it against all of the files and display the status (AC|TL|WA)
the default checker used to assess your solution's correctness is the "diff" checker, which basically checks line by line for differences, you can override it with one of the available checkers by using the --checker={checker-name}.
At the time of writing this document there are two available checkers diff and tokens, if you think we need to add others, writing them is not so hard, create an Issue, or better submit a PR :)
Usage example :
$ egor test
┌───┬──────────────────┬────────┬────────┬───────────────────────────────────┬────────┬────────────────┐
│ # │ TEST NAME │ STATUS │ CUSTOM │ ADDITIONAL INFOS │ STDERR │ EXECUTION TIME │
├───┼──────────────────┼────────┼────────┼───────────────────────────────────┼────────┼────────────────┤
│ 0 │ inputs/test-0.in │ AC │ true │ None │ - │ 241.606747ms │
│ 1 │ inputs/test-1.in │ WA │ true │ FAILED, Checker failed, expected: │ - │ 203.067986ms │
│ │ │ │ │ 15 │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ found: │ │ │
│ │ │ │ │ 6 │ │ │
│ │ │ │ │ │ │ │
└───┴──────────────────┴────────┴────────┴───────────────────────────────────┴────────┴────────────────┘