diamond_kata.cr

Diamond Kata solved in Crystal Language (using TDD (Test-Driven Development) + PBT (Property-Based Testing))

Diamond Kata (Crystal Language)

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

For example: print-diamond ‘C’ prints:

$ print-diamond C
  A
 B B
C   C
 B B
  A

Development

After cloning this repository, use:

  • shards install to install dependencies,
  • crystal spec to run test suite.

Contributing

  1. Fork it ( https://github.com/waterlink/diamond_kata.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • waterlink Oleksii Fedorov - creator, maintainer
Repository

diamond_kata.cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • about 8 years ago
  • March 29, 2016
License

MIT License

Links
Synced at

Fri, 17 May 2024 17:17:15 GMT

Languages