dodona-edu / universal-judge

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

Support DSL values in oracles #439

Closed niknetniko closed 9 months ago

niknetniko commented 9 months ago

Currently, you can overwrite the expected and actual value using oracles. However, these overwritten values are "raw" strings and shown verbatim to the user. This makes it difficult to create a language-independent oracles, as you need to convert values to all programming languages yourself (and furthermore, you don't actually know for which language you are called).

This PR adds support for using the DSL Python-like syntax for these overwrites, meaning TESTed takes care of converting the values into the proper representation in the target programming language.