{"id":15598693,"url":"https://github.com/praisespjmt/test-driven-development-practice","last_synced_at":"2025-03-29T12:14:54.713Z","repository":{"id":111328007,"uuid":"564238523","full_name":"PraisesPJMT/Test-Driven-Development-Practice","owner":"PraisesPJMT","description":"This repository has an implementation a `Solver` class with some methods using test-driven development (TDD). The idea is to write tests first and then the code. The project was done entirely with Ruby.","archived":false,"fork":false,"pushed_at":"2022-11-11T14:26:33.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-02-04T12:56:28.389Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PraisesPJMT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-10T09:43:19.000Z","updated_at":"2023-02-09T19:23:07.000Z","dependencies_parsed_at":"2023-05-23T14:02:13.163Z","dependency_job_id":null,"html_url":"https://github.com/PraisesPJMT/Test-Driven-Development-Practice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PraisesPJMT%2FTest-Driven-Development-Practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PraisesPJMT%2FTest-Driven-Development-Practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PraisesPJMT%2FTest-Driven-Development-Practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PraisesPJMT%2FTest-Driven-Development-Practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PraisesPJMT","download_url":"https://codeload.github.com/PraisesPJMT/Test-Driven-Development-Practice/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246180923,"owners_count":20736460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby"],"created_at":"2024-10-03T01:41:02.804Z","updated_at":"2025-03-29T12:14:54.694Z","avatar_url":"https://github.com/PraisesPJMT.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test-Driven-Design-Practice\n\u003eIn this project we implemented a class with some methods using test-driven development (TDD). \n\u003e The idea is to write tests first and then the code.\n\u003e We created a class called `Solver` with the following methods:\n\u003e - `factorial` that takes one argument, an integer `num`, and returns the factorial for that number. The factorial is the multiplication of all integers from 1 to `num` and has the special case that the factorial of 0 is 1. This method only accepts 0 and positive integers, so if a negative integer is given it should raise an exception.\n\u003e - `reverse` that takes one argument, a string word, and returns word reversed (e.g. if word is `hello` it returns `olleh`).\n\u003e - `fizzbuzz` that takes one argument, an integer `num`, and returns a string. The returned string is constructed following these rules:\n\u003e   - When `num` is divisible by `3`, return `fizz`.\n\u003e   - When `num` is divisible by `5`, return `buzz`.\n\u003e   - When `num` is divisible by `3` and `5`, return `fizzbuzz`.\n\u003e   - Any other case, return `num` as a string (e.g. say `num` is `7` then return `7`).\n\n## Built With [Linter]\n![Ruby](https://img.shields.io/badge/ruby-A30031.svg?style=for-the-badge\u0026logo=ruby\u0026logoColor=white) ![Rubocop](https://img.shields.io/badge/RUBOCOP-A30031.svg?style=for-the-badge)\n## Authors\n\n👤 **Kwaleyela Musilizo Ikafa**\n\n[![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge\u0026logo=github\u0026logoColor=white)](https://github.com/Kwaleyela-Ikafa)\n[![LinkedIn](https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/kwaleyela-musilizo-ikafa/)\n[![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.svg?style=for-the-badge\u0026logo=Twitter\u0026logoColor=white)](https://twitter.com/K_Ikafa)\n\n👤 **Praises Tula**\n\n[![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge\u0026logo=github\u0026logoColor=white)](https://github.com/PraisesPJMT/)\n[![LinkedIn](https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/praises-tula/)\n[![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.svg?style=for-the-badge\u0026logo=Twitter\u0026logoColor=white)](https://twitter.com/PraisesPJMT/)\n\n[![Gmail](https://img.shields.io/badge/Gmail-D14836?style=for-the-badge\u0026logo=gmail\u0026logoColor=white)](mailto:praisesmusa@gmail.com)\n[![AngelList](https://img.shields.io/badge/AngelList-%23D4D4D4.svg?style=for-the-badge\u0026logo=AngelList\u0026logoColor=black)](https://angel.co/u/praises-tula/)\n\n## 🤝 Contributing\n\nContributions, [issues](../../issues), and feature requests are welcome!\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](../../issues/).\n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\n- Hat tip to you for checking out this amazing project.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraisespjmt%2Ftest-driven-development-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraisespjmt%2Ftest-driven-development-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraisespjmt%2Ftest-driven-development-practice/lists"}