Would be good to have a CONTRIBUTING.md documenting the workflow. Writing it down would also help me clarify the steps to myself.
As a first step, let's focus on practice exercises. My understanding so far
- Choose an exercise and update
config.json, adding at least the fields name, difficulty, stub. (I am a little surprised configlet cannot do this for me).
- run
bin/configlet uuid and add the code to the uuid field in config.json
- run
bin/configlet sync --update --docs --metadata --tests --exercise $(EXERCISE-STUB) to initialize the folder
- initialize the folder. This could be done with
mason init. The add test/tests.chpl (would be nice to automate with next step)
- Looking at problem specifications, add exercises to the tests folder.
- write a reference solution in
.meta/reference.chpl
- from main directory, run
bin/test to test the reference solution passes the tests.
Would be good to have a
CONTRIBUTING.mddocumenting the workflow. Writing it down would also help me clarify the steps to myself.As a first step, let's focus on practice exercises. My understanding so far
config.json, adding at least the fieldsname,difficulty,stub. (I am a little surprised configlet cannot do this for me).bin/configlet uuidand add the code to theuuidfield inconfig.jsonbin/configlet sync --update --docs --metadata --tests --exercise $(EXERCISE-STUB)to initialize the foldermason init. The addtest/tests.chpl(would be nice to automate with next step).meta/reference.chplbin/testto test the reference solution passes the tests.