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 expressions and statements #400

Closed pdawyndt closed 10 months ago

pdawyndt commented 11 months ago

Currently, TESTed-DSL treats expression and statements as synonyms. However, we might make the following distinction.

Expressions are evaluated into a value. The default expected return value of an expression is nothing, but this expected value can be altered by explicitly setting an expected return value in a test suite.

Statements are executed, which never yields a value. The return value of an expression is always ignored, and this behavior can not be overruled. This means that no return value can be set for a statement in a test suite.

pdawyndt commented 11 months ago

This might solve #372