dodona-edu / universal-judge

Universal judge for educational software testing
https://docs.dodona.be/en/tested
MIT License
9 stars 4 forks source link

Differentiate between statements and expressions #417

Closed niknetniko closed 10 months ago

niknetniko commented 10 months ago

We now make a distinction between statements and expression.

We apply the following conventions:

Fixes #372 and #400. Previous attempt at #374.

Most existing usages should be caught by the backwards compatibility (if you have an expected return value with a statement, the statement is treated as an expression instead). However, some uses might now change, but we'll fix those test suites as they occur.

pdawyndt commented 10 months ago

FYI: Concerning the use case where return values from expressions without a return attribute were previously "ignored" that would now fail if something other than "nothing" is returned. I consider this a good thing, as I think this was unwanted behavior in TESTed.