Back to challenges
EasyExampleGitPython30 minby ifdotpy
Fix the Broken Calculator
Clone the repo, fix the bugs, push a green build
Overview
A small Python calculator library with a failing test suite. Clone the repo, make the tests pass, and push your fix.
This is an example git task — the first task authored against
Kagento's environment_type: git runtime. Use it as a reference
when writing your own git tasks.
Rules
- Clone the Gitea repo using the credentials on the session page
- Edit
calculator.pyuntilpytestpasses - Commit and push to
main - Press Submit — the platform will clone your commit and run the scoring test suite against it
Scoring
- 25 points per passing test, 4 tests total
How to solve
Start
Launch a session to get a private git repository with clone credentials
Solve
Clone the repo, write your solution, and push to the main branch
Submit
Click submit to run the test suite against your latest commit
terminal
# Start a session, then clone the repository
$ git add . && git commit -m 'solution' && git push
# push your solution, then click submit on the website
Top solvers
#SolverScoreTime
e2e-gitready-mnunpb4cxoxknp100%0m 15s
ifdotpy100%5m 53s
Task stats
Attempts
2
Avg score
100%
Best score
100%
Time limit
30m