DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
715 stars 252 forks source link

[Feature Request] Allow `DomJudge` To Report If Test Case Output Are Different Data Types #1510

Closed Rubix982 closed 2 years ago

Rubix982 commented 2 years ago

Description of the problem

If I create a problem, and then I add test cases, I may mistakenly (with human error) add test cases that have different output data types.

For example, if I create a test case 1, with (1.in, 1.out), and 2, with (2.in, 2.out), where 1.out is,

NO

And 2.out is,

2

The output of 1.out is a STRING data type, and output of 2.out is a INTEGER, then DomJudge should show a warning because of differing data types.

Your environment

Latest, but the feature request is independent.

Steps to reproduce

Mentioned above.

Expected behavior

DomJudge should give a warning.

Actual behavior

No warning is currently generated.

Any other information that you want to share?

Nope.

Anything else? Thank you for this awesome project!

meisterT commented 2 years ago

To be honest I don't think this should be a feature in DOMjudge.

We see problem validation beyond submitting and verifying jury solutions out of scope.

You may want to consider reporting this to https://github.com/Kattis/problemtools or https://github.com/RagnarGrootKoerkamp/BAPCtools instead.

Rubix982 commented 2 years ago

Hmm, noted. That is another perspective I did not consider.

eldering commented 2 years ago

Also see https://www.domjudge.org/checktestdata which you can use to validate both test case input and output.