21 September 2020
This is a project for Epicodus to practice using test driven development with Ruby and to practice Ruby methods and loops. The program takes in a string and returns it into leetspeak according the rules listed here: https://en.wikipedia.org/wiki/Leet .
Spec | Behavior | Input | Output |
---|---|---|---|
1 | The letter "e" should be replaced with "3" | "epicodus" | "3picodus" |
2 | The letter "o" should be replaced with "0" | "epicodus" | "epic0dus" |
3 | The capital letter "I" (but not the lower case, "i") should be replaced with "1" | "who am I? epicodus" | "who am 1? epicodus" |
4 | 'replaces every "s" in a string with a "z"' | "epicodus" | "epicoduz" |
5 | does NOT replace the first letter when it is an s | "smart" | "smart" |
To Extend This Project:
- Clone this project using the 'git clone' command in terminal.
- Open the cloned repo in a text editor of your choice.
There are no known bugs at this time.
- Ruby
- Ruby Gems: rspec, pry
Copyright (c) 2020 Vanessa Stewart, Alex Goodwin
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.