Skip to content

Support for grader code reuse #169

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

Closed
adhameer opened this issue Oct 6, 2018 · 4 comments
Closed

Support for grader code reuse #169

adhameer opened this issue Oct 6, 2018 · 4 comments

Comments

@adhameer
Copy link
Contributor

adhameer commented Oct 6, 2018

We have a lot of functions that we are using repeatedly across graders for different exercises. Currently we have to just copy and paste those functions into test.ml for each grader since we don't have control over the build. It would be very nice if we could just put all this code into a separate module and link it during compilation.

(Maybe there is already a way to do this, but if there is, I'm not sure how.)

@yurug
Copy link
Collaborator

yurug commented Oct 11, 2018

As far as I know, there is no way to do that in the current version. This is a good idea! Thanks!

@Niols
Copy link
Contributor

Niols commented Oct 11, 2018

I agree, it could be great to have this instead of copy-pasting everything all the time.

@fpottier
Copy link
Contributor

On a related note, it would be nice if a grader could access certain common OCaml libraries (perhaps taken from a fixed set; or, ideally, declared by the grader itself). I am thinking for instance of pprint, but I am sure many others would be useful.

@fpottier
Copy link
Contributor

Another library that I would like to use is Seq, which is standard in OCaml 4.07 and is emulated by an opam package in earlier versions. It is useful to program exhaustive enumerations of test cases.

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

4 participants