Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import junit.framework.TestCase;
- import java.util.Arrays;
- import java.util.stream.Collectors;
- public class NBottlesOfBeerOnTheWallTest extends TestCase {
- public static String[] lyricsForOneHundredBottlesOfBeerSong() {
- return new String[]{
- "One hundred bottles of beer on the wall, one hundred bottles of beer.",
- "Take one down and pass it around, ninety-nine bottles of beer on the wall.",
- "",
- "Ninety-nine bottles of beer on the wall, ninety-nine bottles of beer.",
- "Take one down and pass it around, ninety-eight bottles of beer on the wall.",
- "",
- "Ninety-eight bottles of beer on the wall, ninety-eight bottles of beer.",
- "Take one down and pass it around, ninety-seven bottles of beer on the wall.",
- "",
- "Ninety-seven bottles of beer on the wall, ninety-seven bottles of beer.",
- "Take one down and pass it around, ninety-six bottles of beer on the wall.",
- "",
- "Ninety-six bottles of beer on the wall, ninety-six bottles of beer.",
- "Take one down and pass it around, ninety-five bottles of beer on the wall.",
- "",
- "Ninety-five bottles of beer on the wall, ninety-five bottles of beer.",
- "Take one down and pass it around, ninety-four bottles of beer on the wall.",
- "",
- "Ninety-four bottles of beer on the wall, ninety-four bottles of beer.",
- "Take one down and pass it around, ninety-three bottles of beer on the wall.",
- "",
- "Ninety-three bottles of beer on the wall, ninety-three bottles of beer.",
- "Take one down and pass it around, ninety-two bottles of beer on the wall.",
- "",
- "Ninety-two bottles of beer on the wall, ninety-two bottles of beer.",
- "Take one down and pass it around, ninety-one bottles of beer on the wall.",
- "",
- "Ninety-one bottles of beer on the wall, ninety-one bottles of beer.",
- "Take one down and pass it around, ninety bottles of beer on the wall.",
- "",
- "Ninety bottles of beer on the wall, ninety bottles of beer.",
- "Take one down and pass it around, eighty-nine bottles of beer on the wall.",
- "",
- "Eighty-nine bottles of beer on the wall, eighty-nine bottles of beer.",
- "Take one down and pass it around, eighty-eight bottles of beer on the wall.",
- "",
- "Eighty-eight bottles of beer on the wall, eighty-eight bottles of beer.",
- "Take one down and pass it around, eighty-seven bottles of beer on the wall.",
- "",
- "Eighty-seven bottles of beer on the wall, eighty-seven bottles of beer.",
- "Take one down and pass it around, eighty-six bottles of beer on the wall.",
- "",
- "Eighty-six bottles of beer on the wall, eighty-six bottles of beer.",
- "Take one down and pass it around, eighty-five bottles of beer on the wall.",
- "",
- "Eighty-five bottles of beer on the wall, eighty-five bottles of beer.",
- "Take one down and pass it around, eighty-four bottles of beer on the wall.",
- "",
- "Eighty-four bottles of beer on the wall, eighty-four bottles of beer.",
- "Take one down and pass it around, eighty-three bottles of beer on the wall.",
- "",
- "Eighty-three bottles of beer on the wall, eighty-three bottles of beer.",
- "Take one down and pass it around, eighty-two bottles of beer on the wall.",
- "",
- "Eighty-two bottles of beer on the wall, eighty-two bottles of beer.",
- "Take one down and pass it around, eighty-one bottles of beer on the wall.",
- "",
- "Eighty-one bottles of beer on the wall, eighty-one bottles of beer.",
- "Take one down and pass it around, eighty bottles of beer on the wall.",
- "",
- "Eighty bottles of beer on the wall, eighty bottles of beer.",
- "Take one down and pass it around, seventy-nine bottles of beer on the wall.",
- "",
- "Seventy-nine bottles of beer on the wall, seventy-nine bottles of beer.",
- "Take one down and pass it around, seventy-eight bottles of beer on the wall.",
- "",
- "Seventy-eight bottles of beer on the wall, seventy-eight bottles of beer.",
- "Take one down and pass it around, seventy-seven bottles of beer on the wall.",
- "",
- "Seventy-seven bottles of beer on the wall, seventy-seven bottles of beer.",
- "Take one down and pass it around, seventy-six bottles of beer on the wall.",
- "",
- "Seventy-six bottles of beer on the wall, seventy-six bottles of beer.",
- "Take one down and pass it around, seventy-five bottles of beer on the wall.",
- "",
- "Seventy-five bottles of beer on the wall, seventy-five bottles of beer.",
- "Take one down and pass it around, seventy-four bottles of beer on the wall.",
- "",
- "Seventy-four bottles of beer on the wall, seventy-four bottles of beer.",
- "Take one down and pass it around, seventy-three bottles of beer on the wall.",
- "",
- "Seventy-three bottles of beer on the wall, seventy-three bottles of beer.",
- "Take one down and pass it around, seventy-two bottles of beer on the wall.",
- "",
- "Seventy-two bottles of beer on the wall, seventy-two bottles of beer.",
- "Take one down and pass it around, seventy-one bottles of beer on the wall.",
- "",
- "Seventy-one bottles of beer on the wall, seventy-one bottles of beer.",
- "Take one down and pass it around, seventy bottles of beer on the wall.",
- "",
- "Seventy bottles of beer on the wall, seventy bottles of beer.",
- "Take one down and pass it around, sixty-nine bottles of beer on the wall.",
- "",
- "Sixty-nine bottles of beer on the wall, sixty-nine bottles of beer.",
- "Take one down and pass it around, sixty-eight bottles of beer on the wall.",
- "",
- "Sixty-eight bottles of beer on the wall, sixty-eight bottles of beer.",
- "Take one down and pass it around, sixty-seven bottles of beer on the wall.",
- "",
- "Sixty-seven bottles of beer on the wall, sixty-seven bottles of beer.",
- "Take one down and pass it around, sixty-six bottles of beer on the wall.",
- "",
- "Sixty-six bottles of beer on the wall, sixty-six bottles of beer.",
- "Take one down and pass it around, sixty-five bottles of beer on the wall.",
- "",
- "Sixty-five bottles of beer on the wall, sixty-five bottles of beer.",
- "Take one down and pass it around, sixty-four bottles of beer on the wall.",
- "",
- "Sixty-four bottles of beer on the wall, sixty-four bottles of beer.",
- "Take one down and pass it around, sixty-three bottles of beer on the wall.",
- "",
- "Sixty-three bottles of beer on the wall, sixty-three bottles of beer.",
- "Take one down and pass it around, sixty-two bottles of beer on the wall.",
- "",
- "Sixty-two bottles of beer on the wall, sixty-two bottles of beer.",
- "Take one down and pass it around, sixty-one bottles of beer on the wall.",
- "",
- "Sixty-one bottles of beer on the wall, sixty-one bottles of beer.",
- "Take one down and pass it around, sixty bottles of beer on the wall.",
- "",
- "Sixty bottles of beer on the wall, sixty bottles of beer.",
- "Take one down and pass it around, fifty-nine bottles of beer on the wall.",
- "",
- "Fifty-nine bottles of beer on the wall, fifty-nine bottles of beer.",
- "Take one down and pass it around, fifty-eight bottles of beer on the wall.",
- "",
- "Fifty-eight bottles of beer on the wall, fifty-eight bottles of beer.",
- "Take one down and pass it around, fifty-seven bottles of beer on the wall.",
- "",
- "Fifty-seven bottles of beer on the wall, fifty-seven bottles of beer.",
- "Take one down and pass it around, fifty-six bottles of beer on the wall.",
- "",
- "Fifty-six bottles of beer on the wall, fifty-six bottles of beer.",
- "Take one down and pass it around, fifty-five bottles of beer on the wall.",
- "",
- "Fifty-five bottles of beer on the wall, fifty-five bottles of beer.",
- "Take one down and pass it around, fifty-four bottles of beer on the wall.",
- "",
- "Fifty-four bottles of beer on the wall, fifty-four bottles of beer.",
- "Take one down and pass it around, fifty-three bottles of beer on the wall.",
- "",
- "Fifty-three bottles of beer on the wall, fifty-three bottles of beer.",
- "Take one down and pass it around, fifty-two bottles of beer on the wall.",
- "",
- "Fifty-two bottles of beer on the wall, fifty-two bottles of beer.",
- "Take one down and pass it around, fifty-one bottles of beer on the wall.",
- "",
- "Fifty-one bottles of beer on the wall, fifty-one bottles of beer.",
- "Take one down and pass it around, fifty bottles of beer on the wall.",
- "",
- "Fifty bottles of beer on the wall, fifty bottles of beer.",
- "Take one down and pass it around, forty-nine bottles of beer on the wall.",
- "",
- "Forty-nine bottles of beer on the wall, forty-nine bottles of beer.",
- "Take one down and pass it around, forty-eight bottles of beer on the wall.",
- "",
- "Forty-eight bottles of beer on the wall, forty-eight bottles of beer.",
- "Take one down and pass it around, forty-seven bottles of beer on the wall.",
- "",
- "Forty-seven bottles of beer on the wall, forty-seven bottles of beer.",
- "Take one down and pass it around, forty-six bottles of beer on the wall.",
- "",
- "Forty-six bottles of beer on the wall, forty-six bottles of beer.",
- "Take one down and pass it around, forty-five bottles of beer on the wall.",
- "",
- "Forty-five bottles of beer on the wall, forty-five bottles of beer.",
- "Take one down and pass it around, forty-four bottles of beer on the wall.",
- "",
- "Forty-four bottles of beer on the wall, forty-four bottles of beer.",
- "Take one down and pass it around, forty-three bottles of beer on the wall.",
- "",
- "Forty-three bottles of beer on the wall, forty-three bottles of beer.",
- "Take one down and pass it around, forty-two bottles of beer on the wall.",
- "",
- "Forty-two bottles of beer on the wall, forty-two bottles of beer.",
- "Take one down and pass it around, forty-one bottles of beer on the wall.",
- "",
- "Forty-one bottles of beer on the wall, forty-one bottles of beer.",
- "Take one down and pass it around, forty bottles of beer on the wall.",
- "",
- "Forty bottles of beer on the wall, forty bottles of beer.",
- "Take one down and pass it around, thirty-nine bottles of beer on the wall.",
- "",
- "Thirty-nine bottles of beer on the wall, thirty-nine bottles of beer.",
- "Take one down and pass it around, thirty-eight bottles of beer on the wall.",
- "",
- "Thirty-eight bottles of beer on the wall, thirty-eight bottles of beer.",
- "Take one down and pass it around, thirty-seven bottles of beer on the wall.",
- "",
- "Thirty-seven bottles of beer on the wall, thirty-seven bottles of beer.",
- "Take one down and pass it around, thirty-six bottles of beer on the wall.",
- "",
- "Thirty-six bottles of beer on the wall, thirty-six bottles of beer.",
- "Take one down and pass it around, thirty-five bottles of beer on the wall.",
- "",
- "Thirty-five bottles of beer on the wall, thirty-five bottles of beer.",
- "Take one down and pass it around, thirty-four bottles of beer on the wall.",
- "",
- "Thirty-four bottles of beer on the wall, thirty-four bottles of beer.",
- "Take one down and pass it around, thirty-three bottles of beer on the wall.",
- "",
- "Thirty-three bottles of beer on the wall, thirty-three bottles of beer.",
- "Take one down and pass it around, thirty-two bottles of beer on the wall.",
- "",
- "Thirty-two bottles of beer on the wall, thirty-two bottles of beer.",
- "Take one down and pass it around, thirty-one bottles of beer on the wall.",
- "",
- "Thirty-one bottles of beer on the wall, thirty-one bottles of beer.",
- "Take one down and pass it around, thirty bottles of beer on the wall.",
- "",
- "Thirty bottles of beer on the wall, thirty bottles of beer.",
- "Take one down and pass it around, twenty-nine bottles of beer on the wall.",
- "",
- "Twenty-nine bottles of beer on the wall, twenty-nine bottles of beer.",
- "Take one down and pass it around, twenty-eight bottles of beer on the wall.",
- "",
- "Twenty-eight bottles of beer on the wall, twenty-eight bottles of beer.",
- "Take one down and pass it around, twenty-seven bottles of beer on the wall.",
- "",
- "Twenty-seven bottles of beer on the wall, twenty-seven bottles of beer.",
- "Take one down and pass it around, twenty-six bottles of beer on the wall.",
- "",
- "Twenty-six bottles of beer on the wall, twenty-six bottles of beer.",
- "Take one down and pass it around, twenty-five bottles of beer on the wall.",
- "",
- "Twenty-five bottles of beer on the wall, twenty-five bottles of beer.",
- "Take one down and pass it around, twenty-four bottles of beer on the wall.",
- "",
- "Twenty-four bottles of beer on the wall, twenty-four bottles of beer.",
- "Take one down and pass it around, twenty-three bottles of beer on the wall.",
- "",
- "Twenty-three bottles of beer on the wall, twenty-three bottles of beer.",
- "Take one down and pass it around, twenty-two bottles of beer on the wall.",
- "",
- "Twenty-two bottles of beer on the wall, twenty-two bottles of beer.",
- "Take one down and pass it around, twenty-one bottles of beer on the wall.",
- "",
- "Twenty-one bottles of beer on the wall, twenty-one bottles of beer.",
- "Take one down and pass it around, twenty bottles of beer on the wall.",
- "",
- "Twenty bottles of beer on the wall, twenty bottles of beer.",
- "Take one down and pass it around, nineteen bottles of beer on the wall.",
- "",
- "Nineteen bottles of beer on the wall, nineteen bottles of beer.",
- "Take one down and pass it around, eighteen bottles of beer on the wall.",
- "",
- "Eighteen bottles of beer on the wall, eighteen bottles of beer.",
- "Take one down and pass it around, seventeen bottles of beer on the wall.",
- "",
- "Seventeen bottles of beer on the wall, seventeen bottles of beer.",
- "Take one down and pass it around, sixteen bottles of beer on the wall.",
- "",
- "Sixteen bottles of beer on the wall, sixteen bottles of beer.",
- "Take one down and pass it around, fifteen bottles of beer on the wall.",
- "",
- "Fifteen bottles of beer on the wall, fifteen bottles of beer.",
- "Take one down and pass it around, fourteen bottles of beer on the wall.",
- "",
- "Fourteen bottles of beer on the wall, fourteen bottles of beer.",
- "Take one down and pass it around, thirteen bottles of beer on the wall.",
- "",
- "Thirteen bottles of beer on the wall, thirteen bottles of beer.",
- "Take one down and pass it around, twelve bottles of beer on the wall.",
- "",
- "Twelve bottles of beer on the wall, twelve bottles of beer.",
- "Take one down and pass it around, eleven bottles of beer on the wall.",
- "",
- "Eleven bottles of beer on the wall, eleven bottles of beer.",
- "Take one down and pass it around, ten bottles of beer on the wall.",
- "",
- "Ten bottles of beer on the wall, ten bottles of beer.",
- "Take one down and pass it around, nine bottles of beer on the wall.",
- "",
- "Nine bottles of beer on the wall, nine bottles of beer.",
- "Take one down and pass it around, eight bottles of beer on the wall.",
- "",
- "Eight bottles of beer on the wall, eight bottles of beer.",
- "Take one down and pass it around, seven bottles of beer on the wall.",
- "",
- "Seven bottles of beer on the wall, seven bottles of beer.",
- "Take one down and pass it around, six bottles of beer on the wall.",
- "",
- "Six bottles of beer on the wall, six bottles of beer.",
- "Take one down and pass it around, five bottles of beer on the wall.",
- "",
- "Five bottles of beer on the wall, five bottles of beer.",
- "Take one down and pass it around, four bottles of beer on the wall.",
- "",
- "Four bottles of beer on the wall, four bottles of beer.",
- "Take one down and pass it around, three bottles of beer on the wall.",
- "",
- "Three bottles of beer on the wall, three bottles of beer.",
- "Take one down and pass it around, two bottles of beer on the wall.",
- "",
- "Two bottles of beer on the wall, two bottles of beer.",
- "Take one down and pass it around, one bottle of beer on the wall.",
- "",
- "One bottle of beer on the wall, one bottle of beer.",
- "Take one down and pass it around, no more bottles of beer on the wall.",
- "",
- "No more bottles of beer on the wall, no more bottles of beer.",
- "Go to the store and buy some more, one hundred bottles of beer on the wall."};
- }
- public void testOneHundredBottlesOfBeer() {
- assertEqualsArrayValues(new String[]{
- "One hundred bottles of beer on the wall, one hundred bottles of beer.",
- "Take one down and pass it around, ninety-nine bottles of beer on the wall.",
- "",
- "Ninety-nine bottles of beer on the wall, ninety-nine bottles of beer.",
- "Take one down and pass it around, ninety-eight bottles of beer on the wall.",
- "",
- "Ninety-eight bottles of beer on the wall, ninety-eight bottles of beer.",
- "Take one down and pass it around, ninety-seven bottles of beer on the wall.",
- "",
- "Ninety-seven bottles of beer on the wall, ninety-seven bottles of beer.",
- "Take one down and pass it around, ninety-six bottles of beer on the wall.",
- "",
- "Ninety-six bottles of beer on the wall, ninety-six bottles of beer.",
- "Take one down and pass it around, ninety-five bottles of beer on the wall.",
- "",
- "Ninety-five bottles of beer on the wall, ninety-five bottles of beer.",
- "Take one down and pass it around, ninety-four bottles of beer on the wall.",
- "",
- "Ninety-four bottles of beer on the wall, ninety-four bottles of beer.",
- "Take one down and pass it around, ninety-three bottles of beer on the wall.",
- "",
- "Ninety-three bottles of beer on the wall, ninety-three bottles of beer.",
- "Take one down and pass it around, ninety-two bottles of beer on the wall.",
- "",
- "Ninety-two bottles of beer on the wall, ninety-two bottles of beer.",
- "Take one down and pass it around, ninety-one bottles of beer on the wall.",
- "",
- "Ninety-one bottles of beer on the wall, ninety-one bottles of beer.",
- "Take one down and pass it around, ninety bottles of beer on the wall.",
- "",
- "Ninety bottles of beer on the wall, ninety bottles of beer.",
- "Take one down and pass it around, eighty-nine bottles of beer on the wall.",
- "",
- "Eighty-nine bottles of beer on the wall, eighty-nine bottles of beer.",
- "Take one down and pass it around, eighty-eight bottles of beer on the wall.",
- "",
- "Eighty-eight bottles of beer on the wall, eighty-eight bottles of beer.",
- "Take one down and pass it around, eighty-seven bottles of beer on the wall.",
- "",
- "Eighty-seven bottles of beer on the wall, eighty-seven bottles of beer.",
- "Take one down and pass it around, eighty-six bottles of beer on the wall.",
- "",
- "Eighty-six bottles of beer on the wall, eighty-six bottles of beer.",
- "Take one down and pass it around, eighty-five bottles of beer on the wall.",
- "",
- "Eighty-five bottles of beer on the wall, eighty-five bottles of beer.",
- "Take one down and pass it around, eighty-four bottles of beer on the wall.",
- "",
- "Eighty-four bottles of beer on the wall, eighty-four bottles of beer.",
- "Take one down and pass it around, eighty-three bottles of beer on the wall.",
- "",
- "Eighty-three bottles of beer on the wall, eighty-three bottles of beer.",
- "Take one down and pass it around, eighty-two bottles of beer on the wall.",
- "",
- "Eighty-two bottles of beer on the wall, eighty-two bottles of beer.",
- "Take one down and pass it around, eighty-one bottles of beer on the wall.",
- "",
- "Eighty-one bottles of beer on the wall, eighty-one bottles of beer.",
- "Take one down and pass it around, eighty bottles of beer on the wall.",
- "",
- "Eighty bottles of beer on the wall, eighty bottles of beer.",
- "Take one down and pass it around, seventy-nine bottles of beer on the wall.",
- "",
- "Seventy-nine bottles of beer on the wall, seventy-nine bottles of beer.",
- "Take one down and pass it around, seventy-eight bottles of beer on the wall.",
- "",
- "Seventy-eight bottles of beer on the wall, seventy-eight bottles of beer.",
- "Take one down and pass it around, seventy-seven bottles of beer on the wall.",
- "",
- "Seventy-seven bottles of beer on the wall, seventy-seven bottles of beer.",
- "Take one down and pass it around, seventy-six bottles of beer on the wall.",
- "",
- "Seventy-six bottles of beer on the wall, seventy-six bottles of beer.",
- "Take one down and pass it around, seventy-five bottles of beer on the wall.",
- "",
- "Seventy-five bottles of beer on the wall, seventy-five bottles of beer.",
- "Take one down and pass it around, seventy-four bottles of beer on the wall.",
- "",
- "Seventy-four bottles of beer on the wall, seventy-four bottles of beer.",
- "Take one down and pass it around, seventy-three bottles of beer on the wall.",
- "",
- "Seventy-three bottles of beer on the wall, seventy-three bottles of beer.",
- "Take one down and pass it around, seventy-two bottles of beer on the wall.",
- "",
- "Seventy-two bottles of beer on the wall, seventy-two bottles of beer.",
- "Take one down and pass it around, seventy-one bottles of beer on the wall.",
- "",
- "Seventy-one bottles of beer on the wall, seventy-one bottles of beer.",
- "Take one down and pass it around, seventy bottles of beer on the wall.",
- "",
- "Seventy bottles of beer on the wall, seventy bottles of beer.",
- "Take one down and pass it around, sixty-nine bottles of beer on the wall.",
- "",
- "Sixty-nine bottles of beer on the wall, sixty-nine bottles of beer.",
- "Take one down and pass it around, sixty-eight bottles of beer on the wall.",
- "",
- "Sixty-eight bottles of beer on the wall, sixty-eight bottles of beer.",
- "Take one down and pass it around, sixty-seven bottles of beer on the wall.",
- "",
- "Sixty-seven bottles of beer on the wall, sixty-seven bottles of beer.",
- "Take one down and pass it around, sixty-six bottles of beer on the wall.",
- "",
- "Sixty-six bottles of beer on the wall, sixty-six bottles of beer.",
- "Take one down and pass it around, sixty-five bottles of beer on the wall.",
- "",
- "Sixty-five bottles of beer on the wall, sixty-five bottles of beer.",
- "Take one down and pass it around, sixty-four bottles of beer on the wall.",
- "",
- "Sixty-four bottles of beer on the wall, sixty-four bottles of beer.",
- "Take one down and pass it around, sixty-three bottles of beer on the wall.",
- "",
- "Sixty-three bottles of beer on the wall, sixty-three bottles of beer.",
- "Take one down and pass it around, sixty-two bottles of beer on the wall.",
- "",
- "Sixty-two bottles of beer on the wall, sixty-two bottles of beer.",
- "Take one down and pass it around, sixty-one bottles of beer on the wall.",
- "",
- "Sixty-one bottles of beer on the wall, sixty-one bottles of beer.",
- "Take one down and pass it around, sixty bottles of beer on the wall.",
- "",
- "Sixty bottles of beer on the wall, sixty bottles of beer.",
- "Take one down and pass it around, fifty-nine bottles of beer on the wall.",
- "",
- "Fifty-nine bottles of beer on the wall, fifty-nine bottles of beer.",
- "Take one down and pass it around, fifty-eight bottles of beer on the wall.",
- "",
- "Fifty-eight bottles of beer on the wall, fifty-eight bottles of beer.",
- "Take one down and pass it around, fifty-seven bottles of beer on the wall.",
- "",
- "Fifty-seven bottles of beer on the wall, fifty-seven bottles of beer.",
- "Take one down and pass it around, fifty-six bottles of beer on the wall.",
- "",
- "Fifty-six bottles of beer on the wall, fifty-six bottles of beer.",
- "Take one down and pass it around, fifty-five bottles of beer on the wall.",
- "",
- "Fifty-five bottles of beer on the wall, fifty-five bottles of beer.",
- "Take one down and pass it around, fifty-four bottles of beer on the wall.",
- "",
- "Fifty-four bottles of beer on the wall, fifty-four bottles of beer.",
- "Take one down and pass it around, fifty-three bottles of beer on the wall.",
- "",
- "Fifty-three bottles of beer on the wall, fifty-three bottles of beer.",
- "Take one down and pass it around, fifty-two bottles of beer on the wall.",
- "",
- "Fifty-two bottles of beer on the wall, fifty-two bottles of beer.",
- "Take one down and pass it around, fifty-one bottles of beer on the wall.",
- "",
- "Fifty-one bottles of beer on the wall, fifty-one bottles of beer.",
- "Take one down and pass it around, fifty bottles of beer on the wall.",
- "",
- "Fifty bottles of beer on the wall, fifty bottles of beer.",
- "Take one down and pass it around, forty-nine bottles of beer on the wall.",
- "",
- "Forty-nine bottles of beer on the wall, forty-nine bottles of beer.",
- "Take one down and pass it around, forty-eight bottles of beer on the wall.",
- "",
- "Forty-eight bottles of beer on the wall, forty-eight bottles of beer.",
- "Take one down and pass it around, forty-seven bottles of beer on the wall.",
- "",
- "Forty-seven bottles of beer on the wall, forty-seven bottles of beer.",
- "Take one down and pass it around, forty-six bottles of beer on the wall.",
- "",
- "Forty-six bottles of beer on the wall, forty-six bottles of beer.",
- "Take one down and pass it around, forty-five bottles of beer on the wall.",
- "",
- "Forty-five bottles of beer on the wall, forty-five bottles of beer.",
- "Take one down and pass it around, forty-four bottles of beer on the wall.",
- "",
- "Forty-four bottles of beer on the wall, forty-four bottles of beer.",
- "Take one down and pass it around, forty-three bottles of beer on the wall.",
- "",
- "Forty-three bottles of beer on the wall, forty-three bottles of beer.",
- "Take one down and pass it around, forty-two bottles of beer on the wall.",
- "",
- "Forty-two bottles of beer on the wall, forty-two bottles of beer.",
- "Take one down and pass it around, forty-one bottles of beer on the wall.",
- "",
- "Forty-one bottles of beer on the wall, forty-one bottles of beer.",
- "Take one down and pass it around, forty bottles of beer on the wall.",
- "",
- "Forty bottles of beer on the wall, forty bottles of beer.",
- "Take one down and pass it around, thirty-nine bottles of beer on the wall.",
- "",
- "Thirty-nine bottles of beer on the wall, thirty-nine bottles of beer.",
- "Take one down and pass it around, thirty-eight bottles of beer on the wall.",
- "",
- "Thirty-eight bottles of beer on the wall, thirty-eight bottles of beer.",
- "Take one down and pass it around, thirty-seven bottles of beer on the wall.",
- "",
- "Thirty-seven bottles of beer on the wall, thirty-seven bottles of beer.",
- "Take one down and pass it around, thirty-six bottles of beer on the wall.",
- "",
- "Thirty-six bottles of beer on the wall, thirty-six bottles of beer.",
- "Take one down and pass it around, thirty-five bottles of beer on the wall.",
- "",
- "Thirty-five bottles of beer on the wall, thirty-five bottles of beer.",
- "Take one down and pass it around, thirty-four bottles of beer on the wall.",
- "",
- "Thirty-four bottles of beer on the wall, thirty-four bottles of beer.",
- "Take one down and pass it around, thirty-three bottles of beer on the wall.",
- "",
- "Thirty-three bottles of beer on the wall, thirty-three bottles of beer.",
- "Take one down and pass it around, thirty-two bottles of beer on the wall.",
- "",
- "Thirty-two bottles of beer on the wall, thirty-two bottles of beer.",
- "Take one down and pass it around, thirty-one bottles of beer on the wall.",
- "",
- "Thirty-one bottles of beer on the wall, thirty-one bottles of beer.",
- "Take one down and pass it around, thirty bottles of beer on the wall.",
- "",
- "Thirty bottles of beer on the wall, thirty bottles of beer.",
- "Take one down and pass it around, twenty-nine bottles of beer on the wall.",
- "",
- "Twenty-nine bottles of beer on the wall, twenty-nine bottles of beer.",
- "Take one down and pass it around, twenty-eight bottles of beer on the wall.",
- "",
- "Twenty-eight bottles of beer on the wall, twenty-eight bottles of beer.",
- "Take one down and pass it around, twenty-seven bottles of beer on the wall.",
- "",
- "Twenty-seven bottles of beer on the wall, twenty-seven bottles of beer.",
- "Take one down and pass it around, twenty-six bottles of beer on the wall.",
- "",
- "Twenty-six bottles of beer on the wall, twenty-six bottles of beer.",
- "Take one down and pass it around, twenty-five bottles of beer on the wall.",
- "",
- "Twenty-five bottles of beer on the wall, twenty-five bottles of beer.",
- "Take one down and pass it around, twenty-four bottles of beer on the wall.",
- "",
- "Twenty-four bottles of beer on the wall, twenty-four bottles of beer.",
- "Take one down and pass it around, twenty-three bottles of beer on the wall.",
- "",
- "Twenty-three bottles of beer on the wall, twenty-three bottles of beer.",
- "Take one down and pass it around, twenty-two bottles of beer on the wall.",
- "",
- "Twenty-two bottles of beer on the wall, twenty-two bottles of beer.",
- "Take one down and pass it around, twenty-one bottles of beer on the wall.",
- "",
- "Twenty-one bottles of beer on the wall, twenty-one bottles of beer.",
- "Take one down and pass it around, twenty bottles of beer on the wall.",
- "",
- "Twenty bottles of beer on the wall, twenty bottles of beer.",
- "Take one down and pass it around, nineteen bottles of beer on the wall.",
- "",
- "Nineteen bottles of beer on the wall, nineteen bottles of beer.",
- "Take one down and pass it around, eighteen bottles of beer on the wall.",
- "",
- "Eighteen bottles of beer on the wall, eighteen bottles of beer.",
- "Take one down and pass it around, seventeen bottles of beer on the wall.",
- "",
- "Seventeen bottles of beer on the wall, seventeen bottles of beer.",
- "Take one down and pass it around, sixteen bottles of beer on the wall.",
- "",
- "Sixteen bottles of beer on the wall, sixteen bottles of beer.",
- "Take one down and pass it around, fifteen bottles of beer on the wall.",
- "",
- "Fifteen bottles of beer on the wall, fifteen bottles of beer.",
- "Take one down and pass it around, fourteen bottles of beer on the wall.",
- "",
- "Fourteen bottles of beer on the wall, fourteen bottles of beer.",
- "Take one down and pass it around, thirteen bottles of beer on the wall.",
- "",
- "Thirteen bottles of beer on the wall, thirteen bottles of beer.",
- "Take one down and pass it around, twelve bottles of beer on the wall.",
- "",
- "Twelve bottles of beer on the wall, twelve bottles of beer.",
- "Take one down and pass it around, eleven bottles of beer on the wall.",
- "",
- "Eleven bottles of beer on the wall, eleven bottles of beer.",
- "Take one down and pass it around, ten bottles of beer on the wall.",
- "",
- "Ten bottles of beer on the wall, ten bottles of beer.",
- "Take one down and pass it around, nine bottles of beer on the wall.",
- "",
- "Nine bottles of beer on the wall, nine bottles of beer.",
- "Take one down and pass it around, eight bottles of beer on the wall.",
- "",
- "Eight bottles of beer on the wall, eight bottles of beer.",
- "Take one down and pass it around, seven bottles of beer on the wall.",
- "",
- "Seven bottles of beer on the wall, seven bottles of beer.",
- "Take one down and pass it around, six bottles of beer on the wall.",
- "",
- "Six bottles of beer on the wall, six bottles of beer.",
- "Take one down and pass it around, five bottles of beer on the wall.",
- "",
- "Five bottles of beer on the wall, five bottles of beer.",
- "Take one down and pass it around, four bottles of beer on the wall.",
- "",
- "Four bottles of beer on the wall, four bottles of beer.",
- "Take one down and pass it around, three bottles of beer on the wall.",
- "",
- "Three bottles of beer on the wall, three bottles of beer.",
- "Take one down and pass it around, two bottles of beer on the wall.",
- "",
- "Two bottles of beer on the wall, two bottles of beer.",
- "Take one down and pass it around, one bottle of beer on the wall.",
- "",
- "One bottle of beer on the wall, one bottle of beer.",
- "Take one down and pass it around, no more bottles of beer on the wall.",
- "",
- "No more bottles of beer on the wall, no more bottles of beer.",
- "Go to the store and buy some more, one hundred bottles of beer on the wall."},
- lyricsForOneHundredBottlesOfBeerSong());
- }
- private static void assertEqualsArrayValues(final String[] expectedLines, final String[] actualLines) {
- assertEqualsArrayValues(null, expectedLines, actualLines);
- }
- private static void assertEqualsArrayValues(final String message, final String[] expectedLines, final String[] actualLines) {
- final var expectedAsString = Arrays.stream(expectedLines).collect(Collectors.joining(System.lineSeparator()));
- final var actualAsString = Arrays.stream(actualLines).collect(Collectors.joining(System.lineSeparator()));
- assertEquals(message, expectedAsString, actualAsString);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement