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

Turn exercise 003 into practice #2167

Open
cuihtlauac opened this issue Mar 12, 2024 · 2 comments
Open

Turn exercise 003 into practice #2167

cuihtlauac opened this issue Mar 12, 2024 · 2 comments
Labels
beginner can be done by an OCaml beginner exercise good first issue Good for newcomers

Comments

@cuihtlauac
Copy link
Collaborator

cuihtlauac commented Mar 12, 2024

Extract the OCaml code from the markdown file corresponding to this exercise. The file is: data/exercise/003_NAME.md (where 003 is the number from the title of this issue and NAME is the rest of the file name, for instance data/exercise/001_tail.md is the file which corresponds to exercise 001). Use the code in this file to create a folder practice/003 (using this same number).

Populate the 003 folder with (almost) the same files as in folders practice/001 and practice/002 (they are examples).

Three files are different in each folder:

  1. practice/003/ex.ml: it contains the function's signature, which needs to be implemented by the learner;
  2. practice/003/work/impl.ml: it includes the template meant to be filed by the learner;
  3. practice/003/answer/impl.ml: consists of the solution from the original markdown file.

The examples included in the original markdown file must be turned into test cases in the practice/003/ex.ml file.

Folder structure to create:

practice/003/
├── answer
│   ├── impl.ml
│   └── test
│       ├── dune
│       └── run.ml
├── dune
├── dune-project
├── ex.ml
└── work
    ├── impl.ml
    └── test
        ├── dune
        └── run.ml
@cuihtlauac cuihtlauac added beginner can be done by an OCaml beginner exercise good first issue Good for newcomers help wanted outreachy Outreachy contributions and blog posts labels Mar 12, 2024
@MissJae
Copy link
Contributor

MissJae commented Mar 12, 2024

Hello, I'm Jennifer an Outreachy applicant. Can I do this?

@cuihtlauac
Copy link
Collaborator Author

Hello, I'm Jennifer an Outreachy applicant. Can I do this?

Sure, it's meant for that :-)

@cuihtlauac cuihtlauac assigned cuihtlauac and MissJae and unassigned cuihtlauac and MissJae Mar 13, 2024
@cuihtlauac cuihtlauac linked a pull request Mar 14, 2024 that will close this issue
Appleeyes added a commit to Appleeyes/ocaml.org that referenced this issue Mar 14, 2024
Appleeyes added a commit to Appleeyes/ocaml.org that referenced this issue Mar 14, 2024
cuihtlauac added a commit that referenced this issue Mar 18, 2024
* Turn-exercise-006-into-practice

* Turn exercise 003 into practice #2167

* Revert "Turn exercise 003 into practice #2167"

This reverts commit db2b0b1.

* Turn exercise 006 into practice #2172

* fix: modified for request changes

* Update practice/006/answer/impl.ml

* Update practice/006/answer/impl.ml

* fix: Turn exercise 006 into practice

---------

Co-authored-by: Cuihtlauac Alvarado <cuihtlauac@users.noreply.github.com>
@cuihtlauac cuihtlauac removed the outreachy Outreachy contributions and blog posts label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner can be done by an OCaml beginner exercise good first issue Good for newcomers
Projects
Status: 📋 Backlog
Development

Successfully merging a pull request may close this issue.

2 participants