dodona-edu / universal-judge

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

Improve ergonomics of language-specific literals #423

Open niknetniko opened 10 months ago

niknetniko commented 10 months ago

Currently, language-specific literals must be written as follows:

- tab: "My tab"
  testcases:
  - expression:
      c: "to_string(1+1)"
      haskell: "Submission.toString (1+1)"
      runhaskell: "Submission.toString (1+1)"
      java: "Submission.toString(1+1)"
      javascript: "submission.toString(1+1)"
      kotlin: "toString(1+1)"
      python: "submission.to_string(1+1)"
      csharp: "Submission.toString(1+1)"
    return: "2"

This issue is to collect ideas about how to improve this situation.

Related #420, #399.

pdawyndt commented 10 months ago

Important issue about namespaces, is that they will also appear when expressions/statements are included in feedback. Users will thus see a difference with language-agnostic specifications.