/diamond-kata-kotlin-PBT

A Kotlin implementation of the Seb Rose's Diamond Kata that follows ToF-'s Property Based Testing approach in Haskell

Primary LanguageKotlin

Diamond kata using Property Based Testing in Kotlin

A Kotlin implementation of the Seb Rose's Diamond Kata that follows ToF-'s Property Based Testing approach in Haskell.

Kata Description

Given a letter, print a diamond starting with 'A' with the supplied letter at the widest point.

Examples

Input: A
Output: A

Input: B
Output:   A
         B B
          A

Input: C
Output:   A
         B B
        C   C
         B B
          A