Skip to content

πŸ’Ž Made this here with all the ice on in the booth, At the gate outside, when they pull up, they get me loose πŸ’Ž

Notifications You must be signed in to change notification settings

librity/diamond_kata_ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

πŸ’Ž Made this here with all the ice on in the booth, At the gate outside, when they pull up, they get me loose πŸ’Ž

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages