testlib icon indicating copy to clipboard operation
testlib copied to clipboard

Fix test case message in multitest checkers with partial scores

Open nsychev opened this issue 5 months ago • 0 comments

Usually when we have multitest problems and support partial scores, checkers look like that:

int points = 0;
for (int i = 1; i <= t; i++) {
  setTestCase(i);
  // check test case i
  points += testPoints; // (or std::min here)
}
quitp(points);

Now testlib prints message points 12345 (test case 100) which differs from quitf(_ok): ok (100 test cases). I think similar behavior should be implemented in both cases.

nsychev avatar Jul 08 '25 08:07 nsychev