https://github.com/librity/diamond_kata_ruby
💎 Made this here with all the ice on in the booth, At the gate outside, when they pull up, they get me loose 💎
https://github.com/librity/diamond_kata_ruby
diamond diamond-kata diamond-square-algorithm ruby
Last synced: 12 months ago
JSON representation
💎 Made this here with all the ice on in the booth, At the gate outside, when they pull up, they get me loose 💎
- Host: GitHub
- URL: https://github.com/librity/diamond_kata_ruby
- Owner: librity
- Created: 2019-11-07T01:21:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-09T21:32:51.000Z (over 5 years ago)
- Last Synced: 2025-01-08T07:39:33.099Z (about 1 year ago)
- Topics: diamond, diamond-kata, diamond-square-algorithm, ruby
- Language: Ruby
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Diamond Kata
============
The Diamond Kata is a TDD exercise. We have already provided a small collection of unit tests that
correctly assert the expected behaviour of the application.
The task is to get all the tests passing and have the code generate the expected string for a given
single character input.
Examples
--------
input:
A
output:
A
input:
B
output:
_A_
B_B
_A_
__A__
_B_B_
C___C
_B_B_
__A__
input:
E
output:
____A____
___B_B___
__C___C__
_D_____D_
E_______E
_D_____D_
__C___C__
___B_B___
____A____
Usage
-----
To run the tests you need to do the following:
1. Ensure you are using a compatible ruby version (>= 2.3.0)
2. `bundle install`
3. `bin/rspec`
# diamondKataRuby