Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raquellima7/first_challenge
The task to write a small ruby function that orders strings.
https://github.com/raquellima7/first_challenge
rspec ruby
Last synced: about 5 hours ago
JSON representation
The task to write a small ruby function that orders strings.
- Host: GitHub
- URL: https://github.com/raquellima7/first_challenge
- Owner: RaquelLima7
- Created: 2022-04-22T01:51:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T01:19:01.000Z (over 2 years ago)
- Last Synced: 2023-09-08T00:35:18.522Z (about 1 year ago)
- Topics: rspec, ruby
- Language: Ruby
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## First Challenge
The task is to write a small ruby function that orders strings according to the following examples:
1 - Example 1
Input: ["BA2 / 1.1", "BA1 / 1.1"]
Output: ["BA1 / 1.1", "BA2 / 1.1"]
2 - Example 2
Input: ["BA1 / 1.10", "BA1 / 1.2", "BA1 / 1.1"]
Output: ["BA1 / 1.1", "BA1 / 1.2", "BA1 / 1.10"]
3 - Example 3
Input: ["BA1 / 1.10.c", "BA1 / 1.1.x", "BA1 / 1.10.a"]
Output: ["BA1 / 1.1.x", "BA1 / 1.10.a", "BA1 / 1.10.c"]
## Stack the Project
- **Ruby**
- **Rspec**
## Run Locally
Clone the project
```bash
git clone https://github.com/RaquelLima7/first_challenge.git
```Go to the project directory
```bash
cd first_challenge
```## Running Tests
To run tests, run the following command
```bash
rake
```