Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global language support #540

Open
tibvdm opened this issue Sep 24, 2024 · 1 comment
Open

Global language support #540

tibvdm opened this issue Sep 24, 2024 · 1 comment

Comments

@tibvdm
Copy link
Collaborator

tibvdm commented Sep 24, 2024

The following YAML is valid and works as intended.

- tab: geefNde
  testcases:
    - expression: 
        haskell: Submission.geefNde 2 [1, 2, 3, 4]
      return: 3

The docs, however, state that I can define the language at the start of the test plan.

- tab: "My tab"
  language: "java"
  testcases:
  - expression: "Submission.toString(1+1)"
    return: "2"

When I try this for the haskell language, Dodona throw an invalid DSL error

- tab: geefNde
  language: haskell
  testcases:
    - expression: Submission.geefNde 2 [1, 2, 3, 4]
      return: 3
@niknetniko
Copy link
Member

The docs seem to be wrong; I think it should work like this:

language: haskell
tabs:
- tab: geefNde
  testcases:
    - expression: Submission.geefNde 2 [1, 2, 3, 4]
      return: 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants