Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
giusepped committed Nov 27, 2015
1 parent 6b71b76 commit bbe425a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

* The range of number is given in a text file (the first two lines represent the starting and the ending numbers of the range respectively)

#### Running the application
### Running the application

In your terminal do the following

Expand All @@ -14,15 +14,15 @@ $ cd palindrome numbers
$ ruby counter.rb
```

#### Test
### Test

In order to run the Rspec tests (there are 5 tests that test the same range numbers that are in the test files and one other), do the following

```bash
$ rspec
```

## Approach
### Approach

I created an external class that does the counting in a range. I have two methods for checking if a number (once converted into a string) is a palindrome:
* the first one uses the reverse ruby in-built method
Expand Down

0 comments on commit bbe425a

Please sign in to comment.