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 YAML tags #415

Closed niknetniko closed 10 months ago

niknetniko commented 10 months ago

This PR adds support for YAML tags in the DSL.

For example:

- tab: 'Test'
  contexts:
    - testcases:
        - statement: 'test()'
          return: !!set {5, 6}

Note that the return statement is not checked by the JSON Schema (as it is not capable of doing custom types), so if you put nonsense, it will crash with an exception somewhere (e.g. !int64 [5, 6] will result in a crash).