tracks/ruby/exercises/diamond/README.md in trackler-2.2.1.99 vs tracks/ruby/exercises/diamond/README.md in trackler-2.2.1.100
- old
+ new
@@ -1,9 +1,9 @@
# Diamond
-The diamond kata takes as its input a letter, and outputs it in a diamond
-shape. Given a letter, it prints a diamond starting with 'A', with the
+The diamond kata takes as its input a letter, and outputs it in a diamond
+shape. Given a letter, it prints a diamond starting with 'A', with the
supplied letter at the widest point.
## Requirements
* The first row contains one 'A'.
@@ -13,36 +13,36 @@
* The diamond is horizontally symmetric.
* The diamond is vertically symmetric.
* The diamond has a square shape (width equals height).
* The letters form a diamond shape.
* The top half has the letters in ascending order.
-* The bottom half has the letters in descending order.
+* The bottom half has the letters in descending order.
* The four corners (containing the spaces) are triangles.
## Examples
In the following examples, spaces are indicated by `·` characters.
Diamond for letter 'A':
-```plain
+```text
A
```
Diamond for letter 'C':
-```plain
+```text
··A··
·B·B·
C···C
·B·B·
··A··
```
Diamond for letter 'E':
-```plain
+```text
····A····
···B·B···
··C···C··
·D·····D·
E·······E
@@ -64,18 +64,16 @@
If you would like color output, you can `require 'minitest/pride'` in
the test file, or note the alternative instruction, below, for running
the test file.
-In order to run the test, you can run the test file from the exercise
-directory. For example, if the test suite is called
-`hello_world_test.rb`, you can run the following command:
+Run the tests from the exercise directory using the following command:
- ruby hello_world_test.rb
+ ruby diamond_test.rb
To include color from the command line:
- ruby -r minitest/pride hello_world_test.rb
+ ruby -r minitest/pride diamond_test.rb
## Source
Seb Rose [http://claysnow.co.uk/recycling-tests-in-tdd/](http://claysnow.co.uk/recycling-tests-in-tdd/)