-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add Practice Exercise: ledger
#196
Comments
can I take this? |
This exercise is a bit different than the others - the idea is to give students a working, but complex solution, and have them refactor it to make it as simple as possible. This last sentence from the exercise instructions:
applies to this issue's PR as well, i.e. the PR you create should contain a description/comment explaining what changes you made to the complex solution (lib.cairo) to make it simpler (example.cairo). We will use this as a good example of a refactor to show students who might ask their mentors to review their work. Let me know if anything is unclear or if you need help! |
Alright, I will look into it properly and get back if I have any question. Thanks |
Hi @0xNeshi, the And also I have the passing code in a messy and complex manner, do not know if it will be acceptable and the ledger is printed in the order in which it is being passed in the arguement and not ordered by the date of the transaction. |
Since Cairo only supports ASCII chars, so must we in this exercise. Let's use the lowercase letter
The most important thing is for the test cases from canonical data to pass with the exact inputs and outputs (or as close to exact as possible, in our case using |
In the canonical.json test 4 have the same slug as the last test, but looking at their cases they are not the same, the test 4 tested for transactions on different dates while the other tested for transactions on the same date. Even thou the last test has an additional comment in the test.toml file stating it is reimplementing test 4. I still feel it is not and the name for the test 4 should be changed to cairo won't let me declare more than one test with the same name, so I had to change the test 4 to the name I suggested above. what do you think? |
A test marked as reimplementing another one is intended to replace it completely in the test suite. I wouldn’t expect both to be present so having the same name shouldn’t occur. |
Okay well noted, I can see now that the number 4 has the |
Problem specification:
https://github.com/exercism/problem-specifications/tree/main/exercises/ledger
TODO:
./bin/fetch-configlet && ./bin/configlet create --practice-exercise ledger
https://github.com/exercism/problem-specifications/blob/main/exercises/ledger/canonical-data.json
The text was updated successfully, but these errors were encountered: