Skip to content

A test-driven example of The House That Jack Built. Via Metz, S.

Notifications You must be signed in to change notification settings

ybakos/se303-house

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

The House that Jack Built

Write the code that will output the text to the nursery rhyme The House that Jack Built.

Test Suite

A failing test suite is provided in ./test/house_test.rb.

The test suite can be run with the following command:

$ ruby test/house_test.rb

All but the first test have been marked pending using the skip method. This means that they will not spew error messages at you, even if they're not passing. To get a test to run and show you the error message, delete the skip.

To run a single test, use the name of the test. For example:

$ ruby test/house_test.rb --name test_line_1

Lyrics

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.

Credit: Sandi Metz. Used within the constraints of her LICENSE.

© Sandi Metz. All rights reserved.

About

A test-driven example of The House That Jack Built. Via Metz, S.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages