Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaron-contreras/house-kata
Exercism.io java kata
https://github.com/aaron-contreras/house-kata
Last synced: 26 days ago
JSON representation
Exercism.io java kata
- Host: GitHub
- URL: https://github.com/aaron-contreras/house-kata
- Owner: aaron-contreras
- Created: 2020-03-06T01:00:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-06T04:23:25.000Z (almost 5 years ago)
- Last Synced: 2024-11-12T03:44:12.866Z (about 2 months ago)
- Language: Java
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# House
Recite the nursery rhyme 'This is the House that Jack Built'.
> [The] process of placing a phrase of clause within another phrase of
> clause is called embedding. It is through the processes of recursion
> and embedding that we are able to take a finite number of forms (words
> and phrases) and construct an infinite number of expressions.
> Furthermore, embedding also allows us to construct an infinitely long
> structure, in theory anyway.- [papyr.com](http://papyr.com/hypertextbooks/grammar/ph_noun.htm)
The nursery rhyme reads as follows:
```text
This is the house that Jack built.This is the malt
that lay in the house that Jack built.This is the rat
that ate the malt
that lay in the house that Jack built.This is the cat
that killed the rat
that ate the malt
that lay in the house that Jack built.This is the dog
that worried the cat
that killed the rat
that ate the malt
that lay in the house that Jack built.This is the cow with the crumpled horn
that tossed the dog
that worried the cat
that killed the rat
that ate the malt
that lay in the house that Jack built.This is the maiden all forlorn
that milked the cow with the crumpled horn
that tossed the dog
that worried the cat
that killed the rat
that ate the malt
that lay in the house that Jack built.This is the man all tattered and torn
that kissed the maiden all forlorn
that milked the cow with the crumpled horn
that tossed the dog
that worried the cat
that killed the rat
that ate the malt
that lay in the house that Jack built.This is the priest all shaven and shorn
that married the man all tattered and torn
that kissed the maiden all forlorn
that milked the cow with the crumpled horn
that tossed the dog
that worried the cat
that killed the rat
that ate the malt
that lay in the house that Jack built.This is the rooster that crowed in the morn
that woke the priest all shaven and shorn
that married the man all tattered and torn
that kissed the maiden all forlorn
that milked the cow with the crumpled horn
that tossed the dog
that worried the cat
that killed the rat
that ate the malt
that lay in the house that Jack built.This is the farmer sowing his corn
that kept the rooster that crowed in the morn
that woke the priest all shaven and shorn
that married the man all tattered and torn
that kissed the maiden all forlorn
that milked the cow with the crumpled horn
that tossed the dog
that worried the cat
that killed the rat
that ate the malt
that lay in the house that Jack built.This is the horse and the hound and the horn
that belonged to the farmer sowing his corn
that kept the rooster that crowed in the morn
that woke the priest all shaven and shorn
that married the man all tattered and torn
that kissed the maiden all forlorn
that milked the cow with the crumpled horn
that tossed the dog
that worried the cat
that killed the rat
that ate the malt
that lay in the house that Jack built.
```## Setup
Go through the setup instructions for Java to install the necessary
dependencies:[https://exercism.io/tracks/java/installation](https://exercism.io/tracks/java/installation)
# Running the tests
You can run all the tests for an exercise by entering the following in your
terminal:```sh
$ gradle test
```> Use `gradlew.bat` if you're on Windows
In the test suites all tests but the first have been skipped.
Once you get a test passing, you can enable the next one by removing the
`@Ignore("Remove to run test")` annotation.## Source
British nursery rhyme [http://en.wikipedia.org/wiki/This_Is_The_House_That_Jack_Built](http://en.wikipedia.org/wiki/This_Is_The_House_That_Jack_Built)
## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have
completed the exercise.