ocaml.org icon indicating copy to clipboard operation
ocaml.org copied to clipboard

Add exercises tests

Open cuihtlauac opened this issue 2 years ago • 5 comments

Add a self-testing mechanism to the exercises. A mean for the user to check its implementation without reading the solution.

As a follow-up, those tests should be part of ocaml.org tests to check the validity of the proposed solutions.

cuihtlauac avatar Feb 06 '23 17:02 cuihtlauac

It would be really nice if every exercise had a test-suite. And then integrate that with the playground somehow:

  1. there's a button "open in playground" which leads to a playground that contains the problem statement and some skeleton code to fill in.
  2. problem's playground has a special button "check my solution" that runs the problem's test suite

Something like that, right?

sabine avatar Feb 09 '23 12:02 sabine

Definitely, that would be so cool

cuihtlauac avatar Feb 09 '23 13:02 cuihtlauac

@sabine Can I try working on this? @SaySayo @cuihtlauac @tmattio

amarachigoodness74 avatar Mar 06 '24 11:03 amarachigoodness74

You can go ahead @amarachigoodness74.

SaySayo avatar Mar 08 '24 11:03 SaySayo

Hello @SaySayo, Can i also work on this together with @amarachigoodness74 ?

0xrotense avatar Mar 09 '24 19:03 0xrotense