An open API service indexing awesome lists of open source software.

https://github.com/tsheporamantso/tdd

In this project we will implement a class with some methods, but we will do it by doing test-driven development (TDD). The idea is to write tests first and then the code.
https://github.com/tsheporamantso/tdd

rspec-testing ruby ruby-gem tdd-ruby

Last synced: 3 months ago
JSON representation

In this project we will implement a class with some methods, but we will do it by doing test-driven development (TDD). The idea is to write tests first and then the code.

Awesome Lists containing this project

README

        

Solver

# 📗 Table of Contents

- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [💻 Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [👥 Authors](#authors)
- [🔭 Future Features](#future-features)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
- [❓ FAQ (OPTIONAL)](#faq)
- [📝 License](#license)

# 📖 Solver

**Solver** is a class with 3 methods. The first method `factorial` takes an integer and returns the factorial, second method `reverse` takes a string and return it in reverse and the third method `fizzbuzz` takes a integer and return strings. All these methods are implemented using TDD, the idea is to write test first and then code.

## 🛠 Built With

### Tech Stack

Server


Rspec

### Key Features

- **Factorial of inters**
- **Reverse a string**
- **Modulus of integer and return string**

(back to top)

## 💻 Getting Started

To get a local copy up and running, follow these steps.

### Prerequisites

In order to run this project you need:

- Install ruby using [link](https://www.ruby-lang.org/en/documentation/installation/#apt)

### Setup

Clone this repository to your desired folder:

```sh
mkdir folder_name
cd folder_name
git clone [email protected]:tsheporamantso/TDD.git
```

### Install

Install this project with:

```sh
bundle install
```

```sh
rspec install
```

### Usage

To run the project, execute the following command:
run the result on the terminal through:

```sh
rspec ./spec/solver.rb
```

### Run tests

No tests available.

(back to top)

## 👥 Authors

👤 **Gladwin Tshepo Ramantso**

- GitHub: [@tsheporamantso](https://github.com/tsheporamantso)
- Twitter: [@ramgt001](https://twitter.com/ramgt001)
- LinkedIn: [Tshepo Gladwin Ramantso](https://www.linkedin.com/in/tshepo-ramantso-b6a35433/)

👤 **Aung Pyae Khant**

- GitHub: [@lilskyex0x](https://github.com/lilskyex0x)
- Twitter: [@Aung Pyae Khant](https://twitter.com/LilSn0w45)
- LinkedIn: [Aung Pyae Khant](www.linkedin.com/in/aung-pyae-khant-932342251)

(back to top)

## 🔭 Future Features

- [ ] **Add basic UI**
- [ ] **Refactor code**
- [ ] **Deployment on gitpages**

(back to top)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](https://github.com/tsheporamantso/TDD/issues).

(back to top)

## ⭐️ Show your support

If you like this project please give a star on [github](https://github.com/tsheporamantso/OOP-School-Library) & follow us on [twitter](https://twitter.com/ramgt001) and also connect on [Linkedin](https://www.linkedin.com/in/tshepo-ramantso-b6a35433/).

(back to top)

## 🙏 Acknowledgments

I would like to thank:

- [ ] **Microverse and all the staff**
- [ ] **Microverse Communinity**
- [ ] **Thanks to my coding Partners**
- [ ] **Thanks to my Morning-Session-Group and Standup-Team Partners and**
- [ ] **Thanks to Code Reviewers**

(back to top)

## 📝 License

This project is [MIT](https://github.com/tsheporamantso/TDD/blob/32acef919148ae0de8ffa52336e15e78a9d27f6a/LICENSE) licensed.

(back to top)