Advertisement
JeffGrigg

Full Class with One Liner

Feb 11th, 2024
2,118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 43.02 KB | Software | 0 0
  1. import junit.framework.TestCase;
  2.  
  3. import java.util.Arrays;
  4. import java.util.stream.Collectors;
  5.  
  6. public class NBottlesOfBeerOnTheWallTest extends TestCase {
  7.  
  8.     public static String[] lyricsForOneHundredBottlesOfBeerSong() {
  9.         return new String[]{
  10.                 "One hundred bottles of beer on the wall, one hundred bottles of beer.",
  11.                 "Take one down and pass it around, ninety-nine bottles of beer on the wall.",
  12.                 "",
  13.                 "Ninety-nine bottles of beer on the wall, ninety-nine bottles of beer.",
  14.                 "Take one down and pass it around, ninety-eight bottles of beer on the wall.",
  15.                 "",
  16.                 "Ninety-eight bottles of beer on the wall, ninety-eight bottles of beer.",
  17.                 "Take one down and pass it around, ninety-seven bottles of beer on the wall.",
  18.                 "",
  19.                 "Ninety-seven bottles of beer on the wall, ninety-seven bottles of beer.",
  20.                 "Take one down and pass it around, ninety-six bottles of beer on the wall.",
  21.                 "",
  22.                 "Ninety-six bottles of beer on the wall, ninety-six bottles of beer.",
  23.                 "Take one down and pass it around, ninety-five bottles of beer on the wall.",
  24.                 "",
  25.                 "Ninety-five bottles of beer on the wall, ninety-five bottles of beer.",
  26.                 "Take one down and pass it around, ninety-four bottles of beer on the wall.",
  27.                 "",
  28.                 "Ninety-four bottles of beer on the wall, ninety-four bottles of beer.",
  29.                 "Take one down and pass it around, ninety-three bottles of beer on the wall.",
  30.                 "",
  31.                 "Ninety-three bottles of beer on the wall, ninety-three bottles of beer.",
  32.                 "Take one down and pass it around, ninety-two bottles of beer on the wall.",
  33.                 "",
  34.                 "Ninety-two bottles of beer on the wall, ninety-two bottles of beer.",
  35.                 "Take one down and pass it around, ninety-one bottles of beer on the wall.",
  36.                 "",
  37.                 "Ninety-one bottles of beer on the wall, ninety-one bottles of beer.",
  38.                 "Take one down and pass it around, ninety bottles of beer on the wall.",
  39.                 "",
  40.                 "Ninety bottles of beer on the wall, ninety bottles of beer.",
  41.                 "Take one down and pass it around, eighty-nine bottles of beer on the wall.",
  42.                 "",
  43.                 "Eighty-nine bottles of beer on the wall, eighty-nine bottles of beer.",
  44.                 "Take one down and pass it around, eighty-eight bottles of beer on the wall.",
  45.                 "",
  46.                 "Eighty-eight bottles of beer on the wall, eighty-eight bottles of beer.",
  47.                 "Take one down and pass it around, eighty-seven bottles of beer on the wall.",
  48.                 "",
  49.                 "Eighty-seven bottles of beer on the wall, eighty-seven bottles of beer.",
  50.                 "Take one down and pass it around, eighty-six bottles of beer on the wall.",
  51.                 "",
  52.                 "Eighty-six bottles of beer on the wall, eighty-six bottles of beer.",
  53.                 "Take one down and pass it around, eighty-five bottles of beer on the wall.",
  54.                 "",
  55.                 "Eighty-five bottles of beer on the wall, eighty-five bottles of beer.",
  56.                 "Take one down and pass it around, eighty-four bottles of beer on the wall.",
  57.                 "",
  58.                 "Eighty-four bottles of beer on the wall, eighty-four bottles of beer.",
  59.                 "Take one down and pass it around, eighty-three bottles of beer on the wall.",
  60.                 "",
  61.                 "Eighty-three bottles of beer on the wall, eighty-three bottles of beer.",
  62.                 "Take one down and pass it around, eighty-two bottles of beer on the wall.",
  63.                 "",
  64.                 "Eighty-two bottles of beer on the wall, eighty-two bottles of beer.",
  65.                 "Take one down and pass it around, eighty-one bottles of beer on the wall.",
  66.                 "",
  67.                 "Eighty-one bottles of beer on the wall, eighty-one bottles of beer.",
  68.                 "Take one down and pass it around, eighty bottles of beer on the wall.",
  69.                 "",
  70.                 "Eighty bottles of beer on the wall, eighty bottles of beer.",
  71.                 "Take one down and pass it around, seventy-nine bottles of beer on the wall.",
  72.                 "",
  73.                 "Seventy-nine bottles of beer on the wall, seventy-nine bottles of beer.",
  74.                 "Take one down and pass it around, seventy-eight bottles of beer on the wall.",
  75.                 "",
  76.                 "Seventy-eight bottles of beer on the wall, seventy-eight bottles of beer.",
  77.                 "Take one down and pass it around, seventy-seven bottles of beer on the wall.",
  78.                 "",
  79.                 "Seventy-seven bottles of beer on the wall, seventy-seven bottles of beer.",
  80.                 "Take one down and pass it around, seventy-six bottles of beer on the wall.",
  81.                 "",
  82.                 "Seventy-six bottles of beer on the wall, seventy-six bottles of beer.",
  83.                 "Take one down and pass it around, seventy-five bottles of beer on the wall.",
  84.                 "",
  85.                 "Seventy-five bottles of beer on the wall, seventy-five bottles of beer.",
  86.                 "Take one down and pass it around, seventy-four bottles of beer on the wall.",
  87.                 "",
  88.                 "Seventy-four bottles of beer on the wall, seventy-four bottles of beer.",
  89.                 "Take one down and pass it around, seventy-three bottles of beer on the wall.",
  90.                 "",
  91.                 "Seventy-three bottles of beer on the wall, seventy-three bottles of beer.",
  92.                 "Take one down and pass it around, seventy-two bottles of beer on the wall.",
  93.                 "",
  94.                 "Seventy-two bottles of beer on the wall, seventy-two bottles of beer.",
  95.                 "Take one down and pass it around, seventy-one bottles of beer on the wall.",
  96.                 "",
  97.                 "Seventy-one bottles of beer on the wall, seventy-one bottles of beer.",
  98.                 "Take one down and pass it around, seventy bottles of beer on the wall.",
  99.                 "",
  100.                 "Seventy bottles of beer on the wall, seventy bottles of beer.",
  101.                 "Take one down and pass it around, sixty-nine bottles of beer on the wall.",
  102.                 "",
  103.                 "Sixty-nine bottles of beer on the wall, sixty-nine bottles of beer.",
  104.                 "Take one down and pass it around, sixty-eight bottles of beer on the wall.",
  105.                 "",
  106.                 "Sixty-eight bottles of beer on the wall, sixty-eight bottles of beer.",
  107.                 "Take one down and pass it around, sixty-seven bottles of beer on the wall.",
  108.                 "",
  109.                 "Sixty-seven bottles of beer on the wall, sixty-seven bottles of beer.",
  110.                 "Take one down and pass it around, sixty-six bottles of beer on the wall.",
  111.                 "",
  112.                 "Sixty-six bottles of beer on the wall, sixty-six bottles of beer.",
  113.                 "Take one down and pass it around, sixty-five bottles of beer on the wall.",
  114.                 "",
  115.                 "Sixty-five bottles of beer on the wall, sixty-five bottles of beer.",
  116.                 "Take one down and pass it around, sixty-four bottles of beer on the wall.",
  117.                 "",
  118.                 "Sixty-four bottles of beer on the wall, sixty-four bottles of beer.",
  119.                 "Take one down and pass it around, sixty-three bottles of beer on the wall.",
  120.                 "",
  121.                 "Sixty-three bottles of beer on the wall, sixty-three bottles of beer.",
  122.                 "Take one down and pass it around, sixty-two bottles of beer on the wall.",
  123.                 "",
  124.                 "Sixty-two bottles of beer on the wall, sixty-two bottles of beer.",
  125.                 "Take one down and pass it around, sixty-one bottles of beer on the wall.",
  126.                 "",
  127.                 "Sixty-one bottles of beer on the wall, sixty-one bottles of beer.",
  128.                 "Take one down and pass it around, sixty bottles of beer on the wall.",
  129.                 "",
  130.                 "Sixty bottles of beer on the wall, sixty bottles of beer.",
  131.                 "Take one down and pass it around, fifty-nine bottles of beer on the wall.",
  132.                 "",
  133.                 "Fifty-nine bottles of beer on the wall, fifty-nine bottles of beer.",
  134.                 "Take one down and pass it around, fifty-eight bottles of beer on the wall.",
  135.                 "",
  136.                 "Fifty-eight bottles of beer on the wall, fifty-eight bottles of beer.",
  137.                 "Take one down and pass it around, fifty-seven bottles of beer on the wall.",
  138.                 "",
  139.                 "Fifty-seven bottles of beer on the wall, fifty-seven bottles of beer.",
  140.                 "Take one down and pass it around, fifty-six bottles of beer on the wall.",
  141.                 "",
  142.                 "Fifty-six bottles of beer on the wall, fifty-six bottles of beer.",
  143.                 "Take one down and pass it around, fifty-five bottles of beer on the wall.",
  144.                 "",
  145.                 "Fifty-five bottles of beer on the wall, fifty-five bottles of beer.",
  146.                 "Take one down and pass it around, fifty-four bottles of beer on the wall.",
  147.                 "",
  148.                 "Fifty-four bottles of beer on the wall, fifty-four bottles of beer.",
  149.                 "Take one down and pass it around, fifty-three bottles of beer on the wall.",
  150.                 "",
  151.                 "Fifty-three bottles of beer on the wall, fifty-three bottles of beer.",
  152.                 "Take one down and pass it around, fifty-two bottles of beer on the wall.",
  153.                 "",
  154.                 "Fifty-two bottles of beer on the wall, fifty-two bottles of beer.",
  155.                 "Take one down and pass it around, fifty-one bottles of beer on the wall.",
  156.                 "",
  157.                 "Fifty-one bottles of beer on the wall, fifty-one bottles of beer.",
  158.                 "Take one down and pass it around, fifty bottles of beer on the wall.",
  159.                 "",
  160.                 "Fifty bottles of beer on the wall, fifty bottles of beer.",
  161.                 "Take one down and pass it around, forty-nine bottles of beer on the wall.",
  162.                 "",
  163.                 "Forty-nine bottles of beer on the wall, forty-nine bottles of beer.",
  164.                 "Take one down and pass it around, forty-eight bottles of beer on the wall.",
  165.                 "",
  166.                 "Forty-eight bottles of beer on the wall, forty-eight bottles of beer.",
  167.                 "Take one down and pass it around, forty-seven bottles of beer on the wall.",
  168.                 "",
  169.                 "Forty-seven bottles of beer on the wall, forty-seven bottles of beer.",
  170.                 "Take one down and pass it around, forty-six bottles of beer on the wall.",
  171.                 "",
  172.                 "Forty-six bottles of beer on the wall, forty-six bottles of beer.",
  173.                 "Take one down and pass it around, forty-five bottles of beer on the wall.",
  174.                 "",
  175.                 "Forty-five bottles of beer on the wall, forty-five bottles of beer.",
  176.                 "Take one down and pass it around, forty-four bottles of beer on the wall.",
  177.                 "",
  178.                 "Forty-four bottles of beer on the wall, forty-four bottles of beer.",
  179.                 "Take one down and pass it around, forty-three bottles of beer on the wall.",
  180.                 "",
  181.                 "Forty-three bottles of beer on the wall, forty-three bottles of beer.",
  182.                 "Take one down and pass it around, forty-two bottles of beer on the wall.",
  183.                 "",
  184.                 "Forty-two bottles of beer on the wall, forty-two bottles of beer.",
  185.                 "Take one down and pass it around, forty-one bottles of beer on the wall.",
  186.                 "",
  187.                 "Forty-one bottles of beer on the wall, forty-one bottles of beer.",
  188.                 "Take one down and pass it around, forty bottles of beer on the wall.",
  189.                 "",
  190.                 "Forty bottles of beer on the wall, forty bottles of beer.",
  191.                 "Take one down and pass it around, thirty-nine bottles of beer on the wall.",
  192.                 "",
  193.                 "Thirty-nine bottles of beer on the wall, thirty-nine bottles of beer.",
  194.                 "Take one down and pass it around, thirty-eight bottles of beer on the wall.",
  195.                 "",
  196.                 "Thirty-eight bottles of beer on the wall, thirty-eight bottles of beer.",
  197.                 "Take one down and pass it around, thirty-seven bottles of beer on the wall.",
  198.                 "",
  199.                 "Thirty-seven bottles of beer on the wall, thirty-seven bottles of beer.",
  200.                 "Take one down and pass it around, thirty-six bottles of beer on the wall.",
  201.                 "",
  202.                 "Thirty-six bottles of beer on the wall, thirty-six bottles of beer.",
  203.                 "Take one down and pass it around, thirty-five bottles of beer on the wall.",
  204.                 "",
  205.                 "Thirty-five bottles of beer on the wall, thirty-five bottles of beer.",
  206.                 "Take one down and pass it around, thirty-four bottles of beer on the wall.",
  207.                 "",
  208.                 "Thirty-four bottles of beer on the wall, thirty-four bottles of beer.",
  209.                 "Take one down and pass it around, thirty-three bottles of beer on the wall.",
  210.                 "",
  211.                 "Thirty-three bottles of beer on the wall, thirty-three bottles of beer.",
  212.                 "Take one down and pass it around, thirty-two bottles of beer on the wall.",
  213.                 "",
  214.                 "Thirty-two bottles of beer on the wall, thirty-two bottles of beer.",
  215.                 "Take one down and pass it around, thirty-one bottles of beer on the wall.",
  216.                 "",
  217.                 "Thirty-one bottles of beer on the wall, thirty-one bottles of beer.",
  218.                 "Take one down and pass it around, thirty bottles of beer on the wall.",
  219.                 "",
  220.                 "Thirty bottles of beer on the wall, thirty bottles of beer.",
  221.                 "Take one down and pass it around, twenty-nine bottles of beer on the wall.",
  222.                 "",
  223.                 "Twenty-nine bottles of beer on the wall, twenty-nine bottles of beer.",
  224.                 "Take one down and pass it around, twenty-eight bottles of beer on the wall.",
  225.                 "",
  226.                 "Twenty-eight bottles of beer on the wall, twenty-eight bottles of beer.",
  227.                 "Take one down and pass it around, twenty-seven bottles of beer on the wall.",
  228.                 "",
  229.                 "Twenty-seven bottles of beer on the wall, twenty-seven bottles of beer.",
  230.                 "Take one down and pass it around, twenty-six bottles of beer on the wall.",
  231.                 "",
  232.                 "Twenty-six bottles of beer on the wall, twenty-six bottles of beer.",
  233.                 "Take one down and pass it around, twenty-five bottles of beer on the wall.",
  234.                 "",
  235.                 "Twenty-five bottles of beer on the wall, twenty-five bottles of beer.",
  236.                 "Take one down and pass it around, twenty-four bottles of beer on the wall.",
  237.                 "",
  238.                 "Twenty-four bottles of beer on the wall, twenty-four bottles of beer.",
  239.                 "Take one down and pass it around, twenty-three bottles of beer on the wall.",
  240.                 "",
  241.                 "Twenty-three bottles of beer on the wall, twenty-three bottles of beer.",
  242.                 "Take one down and pass it around, twenty-two bottles of beer on the wall.",
  243.                 "",
  244.                 "Twenty-two bottles of beer on the wall, twenty-two bottles of beer.",
  245.                 "Take one down and pass it around, twenty-one bottles of beer on the wall.",
  246.                 "",
  247.                 "Twenty-one bottles of beer on the wall, twenty-one bottles of beer.",
  248.                 "Take one down and pass it around, twenty bottles of beer on the wall.",
  249.                 "",
  250.                 "Twenty bottles of beer on the wall, twenty bottles of beer.",
  251.                 "Take one down and pass it around, nineteen bottles of beer on the wall.",
  252.                 "",
  253.                 "Nineteen bottles of beer on the wall, nineteen bottles of beer.",
  254.                 "Take one down and pass it around, eighteen bottles of beer on the wall.",
  255.                 "",
  256.                 "Eighteen bottles of beer on the wall, eighteen bottles of beer.",
  257.                 "Take one down and pass it around, seventeen bottles of beer on the wall.",
  258.                 "",
  259.                 "Seventeen bottles of beer on the wall, seventeen bottles of beer.",
  260.                 "Take one down and pass it around, sixteen bottles of beer on the wall.",
  261.                 "",
  262.                 "Sixteen bottles of beer on the wall, sixteen bottles of beer.",
  263.                 "Take one down and pass it around, fifteen bottles of beer on the wall.",
  264.                 "",
  265.                 "Fifteen bottles of beer on the wall, fifteen bottles of beer.",
  266.                 "Take one down and pass it around, fourteen bottles of beer on the wall.",
  267.                 "",
  268.                 "Fourteen bottles of beer on the wall, fourteen bottles of beer.",
  269.                 "Take one down and pass it around, thirteen bottles of beer on the wall.",
  270.                 "",
  271.                 "Thirteen bottles of beer on the wall, thirteen bottles of beer.",
  272.                 "Take one down and pass it around, twelve bottles of beer on the wall.",
  273.                 "",
  274.                 "Twelve bottles of beer on the wall, twelve bottles of beer.",
  275.                 "Take one down and pass it around, eleven bottles of beer on the wall.",
  276.                 "",
  277.                 "Eleven bottles of beer on the wall, eleven bottles of beer.",
  278.                 "Take one down and pass it around, ten bottles of beer on the wall.",
  279.                 "",
  280.                 "Ten bottles of beer on the wall, ten bottles of beer.",
  281.                 "Take one down and pass it around, nine bottles of beer on the wall.",
  282.                 "",
  283.                 "Nine bottles of beer on the wall, nine bottles of beer.",
  284.                 "Take one down and pass it around, eight bottles of beer on the wall.",
  285.                 "",
  286.                 "Eight bottles of beer on the wall, eight bottles of beer.",
  287.                 "Take one down and pass it around, seven bottles of beer on the wall.",
  288.                 "",
  289.                 "Seven bottles of beer on the wall, seven bottles of beer.",
  290.                 "Take one down and pass it around, six bottles of beer on the wall.",
  291.                 "",
  292.                 "Six bottles of beer on the wall, six bottles of beer.",
  293.                 "Take one down and pass it around, five bottles of beer on the wall.",
  294.                 "",
  295.                 "Five bottles of beer on the wall, five bottles of beer.",
  296.                 "Take one down and pass it around, four bottles of beer on the wall.",
  297.                 "",
  298.                 "Four bottles of beer on the wall, four bottles of beer.",
  299.                 "Take one down and pass it around, three bottles of beer on the wall.",
  300.                 "",
  301.                 "Three bottles of beer on the wall, three bottles of beer.",
  302.                 "Take one down and pass it around, two bottles of beer on the wall.",
  303.                 "",
  304.                 "Two bottles of beer on the wall, two bottles of beer.",
  305.                 "Take one down and pass it around, one bottle of beer on the wall.",
  306.                 "",
  307.                 "One bottle of beer on the wall, one bottle of beer.",
  308.                 "Take one down and pass it around, no more bottles of beer on the wall.",
  309.                 "",
  310.                 "No more bottles of beer on the wall, no more bottles of beer.",
  311.                 "Go to the store and buy some more, one hundred bottles of beer on the wall."};
  312.     }
  313.  
  314.     public void testOneHundredBottlesOfBeer() {
  315.         assertEqualsArrayValues(new String[]{
  316.                         "One hundred bottles of beer on the wall, one hundred bottles of beer.",
  317.                         "Take one down and pass it around, ninety-nine bottles of beer on the wall.",
  318.                         "",
  319.                         "Ninety-nine bottles of beer on the wall, ninety-nine bottles of beer.",
  320.                         "Take one down and pass it around, ninety-eight bottles of beer on the wall.",
  321.                         "",
  322.                         "Ninety-eight bottles of beer on the wall, ninety-eight bottles of beer.",
  323.                         "Take one down and pass it around, ninety-seven bottles of beer on the wall.",
  324.                         "",
  325.                         "Ninety-seven bottles of beer on the wall, ninety-seven bottles of beer.",
  326.                         "Take one down and pass it around, ninety-six bottles of beer on the wall.",
  327.                         "",
  328.                         "Ninety-six bottles of beer on the wall, ninety-six bottles of beer.",
  329.                         "Take one down and pass it around, ninety-five bottles of beer on the wall.",
  330.                         "",
  331.                         "Ninety-five bottles of beer on the wall, ninety-five bottles of beer.",
  332.                         "Take one down and pass it around, ninety-four bottles of beer on the wall.",
  333.                         "",
  334.                         "Ninety-four bottles of beer on the wall, ninety-four bottles of beer.",
  335.                         "Take one down and pass it around, ninety-three bottles of beer on the wall.",
  336.                         "",
  337.                         "Ninety-three bottles of beer on the wall, ninety-three bottles of beer.",
  338.                         "Take one down and pass it around, ninety-two bottles of beer on the wall.",
  339.                         "",
  340.                         "Ninety-two bottles of beer on the wall, ninety-two bottles of beer.",
  341.                         "Take one down and pass it around, ninety-one bottles of beer on the wall.",
  342.                         "",
  343.                         "Ninety-one bottles of beer on the wall, ninety-one bottles of beer.",
  344.                         "Take one down and pass it around, ninety bottles of beer on the wall.",
  345.                         "",
  346.                         "Ninety bottles of beer on the wall, ninety bottles of beer.",
  347.                         "Take one down and pass it around, eighty-nine bottles of beer on the wall.",
  348.                         "",
  349.                         "Eighty-nine bottles of beer on the wall, eighty-nine bottles of beer.",
  350.                         "Take one down and pass it around, eighty-eight bottles of beer on the wall.",
  351.                         "",
  352.                         "Eighty-eight bottles of beer on the wall, eighty-eight bottles of beer.",
  353.                         "Take one down and pass it around, eighty-seven bottles of beer on the wall.",
  354.                         "",
  355.                         "Eighty-seven bottles of beer on the wall, eighty-seven bottles of beer.",
  356.                         "Take one down and pass it around, eighty-six bottles of beer on the wall.",
  357.                         "",
  358.                         "Eighty-six bottles of beer on the wall, eighty-six bottles of beer.",
  359.                         "Take one down and pass it around, eighty-five bottles of beer on the wall.",
  360.                         "",
  361.                         "Eighty-five bottles of beer on the wall, eighty-five bottles of beer.",
  362.                         "Take one down and pass it around, eighty-four bottles of beer on the wall.",
  363.                         "",
  364.                         "Eighty-four bottles of beer on the wall, eighty-four bottles of beer.",
  365.                         "Take one down and pass it around, eighty-three bottles of beer on the wall.",
  366.                         "",
  367.                         "Eighty-three bottles of beer on the wall, eighty-three bottles of beer.",
  368.                         "Take one down and pass it around, eighty-two bottles of beer on the wall.",
  369.                         "",
  370.                         "Eighty-two bottles of beer on the wall, eighty-two bottles of beer.",
  371.                         "Take one down and pass it around, eighty-one bottles of beer on the wall.",
  372.                         "",
  373.                         "Eighty-one bottles of beer on the wall, eighty-one bottles of beer.",
  374.                         "Take one down and pass it around, eighty bottles of beer on the wall.",
  375.                         "",
  376.                         "Eighty bottles of beer on the wall, eighty bottles of beer.",
  377.                         "Take one down and pass it around, seventy-nine bottles of beer on the wall.",
  378.                         "",
  379.                         "Seventy-nine bottles of beer on the wall, seventy-nine bottles of beer.",
  380.                         "Take one down and pass it around, seventy-eight bottles of beer on the wall.",
  381.                         "",
  382.                         "Seventy-eight bottles of beer on the wall, seventy-eight bottles of beer.",
  383.                         "Take one down and pass it around, seventy-seven bottles of beer on the wall.",
  384.                         "",
  385.                         "Seventy-seven bottles of beer on the wall, seventy-seven bottles of beer.",
  386.                         "Take one down and pass it around, seventy-six bottles of beer on the wall.",
  387.                         "",
  388.                         "Seventy-six bottles of beer on the wall, seventy-six bottles of beer.",
  389.                         "Take one down and pass it around, seventy-five bottles of beer on the wall.",
  390.                         "",
  391.                         "Seventy-five bottles of beer on the wall, seventy-five bottles of beer.",
  392.                         "Take one down and pass it around, seventy-four bottles of beer on the wall.",
  393.                         "",
  394.                         "Seventy-four bottles of beer on the wall, seventy-four bottles of beer.",
  395.                         "Take one down and pass it around, seventy-three bottles of beer on the wall.",
  396.                         "",
  397.                         "Seventy-three bottles of beer on the wall, seventy-three bottles of beer.",
  398.                         "Take one down and pass it around, seventy-two bottles of beer on the wall.",
  399.                         "",
  400.                         "Seventy-two bottles of beer on the wall, seventy-two bottles of beer.",
  401.                         "Take one down and pass it around, seventy-one bottles of beer on the wall.",
  402.                         "",
  403.                         "Seventy-one bottles of beer on the wall, seventy-one bottles of beer.",
  404.                         "Take one down and pass it around, seventy bottles of beer on the wall.",
  405.                         "",
  406.                         "Seventy bottles of beer on the wall, seventy bottles of beer.",
  407.                         "Take one down and pass it around, sixty-nine bottles of beer on the wall.",
  408.                         "",
  409.                         "Sixty-nine bottles of beer on the wall, sixty-nine bottles of beer.",
  410.                         "Take one down and pass it around, sixty-eight bottles of beer on the wall.",
  411.                         "",
  412.                         "Sixty-eight bottles of beer on the wall, sixty-eight bottles of beer.",
  413.                         "Take one down and pass it around, sixty-seven bottles of beer on the wall.",
  414.                         "",
  415.                         "Sixty-seven bottles of beer on the wall, sixty-seven bottles of beer.",
  416.                         "Take one down and pass it around, sixty-six bottles of beer on the wall.",
  417.                         "",
  418.                         "Sixty-six bottles of beer on the wall, sixty-six bottles of beer.",
  419.                         "Take one down and pass it around, sixty-five bottles of beer on the wall.",
  420.                         "",
  421.                         "Sixty-five bottles of beer on the wall, sixty-five bottles of beer.",
  422.                         "Take one down and pass it around, sixty-four bottles of beer on the wall.",
  423.                         "",
  424.                         "Sixty-four bottles of beer on the wall, sixty-four bottles of beer.",
  425.                         "Take one down and pass it around, sixty-three bottles of beer on the wall.",
  426.                         "",
  427.                         "Sixty-three bottles of beer on the wall, sixty-three bottles of beer.",
  428.                         "Take one down and pass it around, sixty-two bottles of beer on the wall.",
  429.                         "",
  430.                         "Sixty-two bottles of beer on the wall, sixty-two bottles of beer.",
  431.                         "Take one down and pass it around, sixty-one bottles of beer on the wall.",
  432.                         "",
  433.                         "Sixty-one bottles of beer on the wall, sixty-one bottles of beer.",
  434.                         "Take one down and pass it around, sixty bottles of beer on the wall.",
  435.                         "",
  436.                         "Sixty bottles of beer on the wall, sixty bottles of beer.",
  437.                         "Take one down and pass it around, fifty-nine bottles of beer on the wall.",
  438.                         "",
  439.                         "Fifty-nine bottles of beer on the wall, fifty-nine bottles of beer.",
  440.                         "Take one down and pass it around, fifty-eight bottles of beer on the wall.",
  441.                         "",
  442.                         "Fifty-eight bottles of beer on the wall, fifty-eight bottles of beer.",
  443.                         "Take one down and pass it around, fifty-seven bottles of beer on the wall.",
  444.                         "",
  445.                         "Fifty-seven bottles of beer on the wall, fifty-seven bottles of beer.",
  446.                         "Take one down and pass it around, fifty-six bottles of beer on the wall.",
  447.                         "",
  448.                         "Fifty-six bottles of beer on the wall, fifty-six bottles of beer.",
  449.                         "Take one down and pass it around, fifty-five bottles of beer on the wall.",
  450.                         "",
  451.                         "Fifty-five bottles of beer on the wall, fifty-five bottles of beer.",
  452.                         "Take one down and pass it around, fifty-four bottles of beer on the wall.",
  453.                         "",
  454.                         "Fifty-four bottles of beer on the wall, fifty-four bottles of beer.",
  455.                         "Take one down and pass it around, fifty-three bottles of beer on the wall.",
  456.                         "",
  457.                         "Fifty-three bottles of beer on the wall, fifty-three bottles of beer.",
  458.                         "Take one down and pass it around, fifty-two bottles of beer on the wall.",
  459.                         "",
  460.                         "Fifty-two bottles of beer on the wall, fifty-two bottles of beer.",
  461.                         "Take one down and pass it around, fifty-one bottles of beer on the wall.",
  462.                         "",
  463.                         "Fifty-one bottles of beer on the wall, fifty-one bottles of beer.",
  464.                         "Take one down and pass it around, fifty bottles of beer on the wall.",
  465.                         "",
  466.                         "Fifty bottles of beer on the wall, fifty bottles of beer.",
  467.                         "Take one down and pass it around, forty-nine bottles of beer on the wall.",
  468.                         "",
  469.                         "Forty-nine bottles of beer on the wall, forty-nine bottles of beer.",
  470.                         "Take one down and pass it around, forty-eight bottles of beer on the wall.",
  471.                         "",
  472.                         "Forty-eight bottles of beer on the wall, forty-eight bottles of beer.",
  473.                         "Take one down and pass it around, forty-seven bottles of beer on the wall.",
  474.                         "",
  475.                         "Forty-seven bottles of beer on the wall, forty-seven bottles of beer.",
  476.                         "Take one down and pass it around, forty-six bottles of beer on the wall.",
  477.                         "",
  478.                         "Forty-six bottles of beer on the wall, forty-six bottles of beer.",
  479.                         "Take one down and pass it around, forty-five bottles of beer on the wall.",
  480.                         "",
  481.                         "Forty-five bottles of beer on the wall, forty-five bottles of beer.",
  482.                         "Take one down and pass it around, forty-four bottles of beer on the wall.",
  483.                         "",
  484.                         "Forty-four bottles of beer on the wall, forty-four bottles of beer.",
  485.                         "Take one down and pass it around, forty-three bottles of beer on the wall.",
  486.                         "",
  487.                         "Forty-three bottles of beer on the wall, forty-three bottles of beer.",
  488.                         "Take one down and pass it around, forty-two bottles of beer on the wall.",
  489.                         "",
  490.                         "Forty-two bottles of beer on the wall, forty-two bottles of beer.",
  491.                         "Take one down and pass it around, forty-one bottles of beer on the wall.",
  492.                         "",
  493.                         "Forty-one bottles of beer on the wall, forty-one bottles of beer.",
  494.                         "Take one down and pass it around, forty bottles of beer on the wall.",
  495.                         "",
  496.                         "Forty bottles of beer on the wall, forty bottles of beer.",
  497.                         "Take one down and pass it around, thirty-nine bottles of beer on the wall.",
  498.                         "",
  499.                         "Thirty-nine bottles of beer on the wall, thirty-nine bottles of beer.",
  500.                         "Take one down and pass it around, thirty-eight bottles of beer on the wall.",
  501.                         "",
  502.                         "Thirty-eight bottles of beer on the wall, thirty-eight bottles of beer.",
  503.                         "Take one down and pass it around, thirty-seven bottles of beer on the wall.",
  504.                         "",
  505.                         "Thirty-seven bottles of beer on the wall, thirty-seven bottles of beer.",
  506.                         "Take one down and pass it around, thirty-six bottles of beer on the wall.",
  507.                         "",
  508.                         "Thirty-six bottles of beer on the wall, thirty-six bottles of beer.",
  509.                         "Take one down and pass it around, thirty-five bottles of beer on the wall.",
  510.                         "",
  511.                         "Thirty-five bottles of beer on the wall, thirty-five bottles of beer.",
  512.                         "Take one down and pass it around, thirty-four bottles of beer on the wall.",
  513.                         "",
  514.                         "Thirty-four bottles of beer on the wall, thirty-four bottles of beer.",
  515.                         "Take one down and pass it around, thirty-three bottles of beer on the wall.",
  516.                         "",
  517.                         "Thirty-three bottles of beer on the wall, thirty-three bottles of beer.",
  518.                         "Take one down and pass it around, thirty-two bottles of beer on the wall.",
  519.                         "",
  520.                         "Thirty-two bottles of beer on the wall, thirty-two bottles of beer.",
  521.                         "Take one down and pass it around, thirty-one bottles of beer on the wall.",
  522.                         "",
  523.                         "Thirty-one bottles of beer on the wall, thirty-one bottles of beer.",
  524.                         "Take one down and pass it around, thirty bottles of beer on the wall.",
  525.                         "",
  526.                         "Thirty bottles of beer on the wall, thirty bottles of beer.",
  527.                         "Take one down and pass it around, twenty-nine bottles of beer on the wall.",
  528.                         "",
  529.                         "Twenty-nine bottles of beer on the wall, twenty-nine bottles of beer.",
  530.                         "Take one down and pass it around, twenty-eight bottles of beer on the wall.",
  531.                         "",
  532.                         "Twenty-eight bottles of beer on the wall, twenty-eight bottles of beer.",
  533.                         "Take one down and pass it around, twenty-seven bottles of beer on the wall.",
  534.                         "",
  535.                         "Twenty-seven bottles of beer on the wall, twenty-seven bottles of beer.",
  536.                         "Take one down and pass it around, twenty-six bottles of beer on the wall.",
  537.                         "",
  538.                         "Twenty-six bottles of beer on the wall, twenty-six bottles of beer.",
  539.                         "Take one down and pass it around, twenty-five bottles of beer on the wall.",
  540.                         "",
  541.                         "Twenty-five bottles of beer on the wall, twenty-five bottles of beer.",
  542.                         "Take one down and pass it around, twenty-four bottles of beer on the wall.",
  543.                         "",
  544.                         "Twenty-four bottles of beer on the wall, twenty-four bottles of beer.",
  545.                         "Take one down and pass it around, twenty-three bottles of beer on the wall.",
  546.                         "",
  547.                         "Twenty-three bottles of beer on the wall, twenty-three bottles of beer.",
  548.                         "Take one down and pass it around, twenty-two bottles of beer on the wall.",
  549.                         "",
  550.                         "Twenty-two bottles of beer on the wall, twenty-two bottles of beer.",
  551.                         "Take one down and pass it around, twenty-one bottles of beer on the wall.",
  552.                         "",
  553.                         "Twenty-one bottles of beer on the wall, twenty-one bottles of beer.",
  554.                         "Take one down and pass it around, twenty bottles of beer on the wall.",
  555.                         "",
  556.                         "Twenty bottles of beer on the wall, twenty bottles of beer.",
  557.                         "Take one down and pass it around, nineteen bottles of beer on the wall.",
  558.                         "",
  559.                         "Nineteen bottles of beer on the wall, nineteen bottles of beer.",
  560.                         "Take one down and pass it around, eighteen bottles of beer on the wall.",
  561.                         "",
  562.                         "Eighteen bottles of beer on the wall, eighteen bottles of beer.",
  563.                         "Take one down and pass it around, seventeen bottles of beer on the wall.",
  564.                         "",
  565.                         "Seventeen bottles of beer on the wall, seventeen bottles of beer.",
  566.                         "Take one down and pass it around, sixteen bottles of beer on the wall.",
  567.                         "",
  568.                         "Sixteen bottles of beer on the wall, sixteen bottles of beer.",
  569.                         "Take one down and pass it around, fifteen bottles of beer on the wall.",
  570.                         "",
  571.                         "Fifteen bottles of beer on the wall, fifteen bottles of beer.",
  572.                         "Take one down and pass it around, fourteen bottles of beer on the wall.",
  573.                         "",
  574.                         "Fourteen bottles of beer on the wall, fourteen bottles of beer.",
  575.                         "Take one down and pass it around, thirteen bottles of beer on the wall.",
  576.                         "",
  577.                         "Thirteen bottles of beer on the wall, thirteen bottles of beer.",
  578.                         "Take one down and pass it around, twelve bottles of beer on the wall.",
  579.                         "",
  580.                         "Twelve bottles of beer on the wall, twelve bottles of beer.",
  581.                         "Take one down and pass it around, eleven bottles of beer on the wall.",
  582.                         "",
  583.                         "Eleven bottles of beer on the wall, eleven bottles of beer.",
  584.                         "Take one down and pass it around, ten bottles of beer on the wall.",
  585.                         "",
  586.                         "Ten bottles of beer on the wall, ten bottles of beer.",
  587.                         "Take one down and pass it around, nine bottles of beer on the wall.",
  588.                         "",
  589.                         "Nine bottles of beer on the wall, nine bottles of beer.",
  590.                         "Take one down and pass it around, eight bottles of beer on the wall.",
  591.                         "",
  592.                         "Eight bottles of beer on the wall, eight bottles of beer.",
  593.                         "Take one down and pass it around, seven bottles of beer on the wall.",
  594.                         "",
  595.                         "Seven bottles of beer on the wall, seven bottles of beer.",
  596.                         "Take one down and pass it around, six bottles of beer on the wall.",
  597.                         "",
  598.                         "Six bottles of beer on the wall, six bottles of beer.",
  599.                         "Take one down and pass it around, five bottles of beer on the wall.",
  600.                         "",
  601.                         "Five bottles of beer on the wall, five bottles of beer.",
  602.                         "Take one down and pass it around, four bottles of beer on the wall.",
  603.                         "",
  604.                         "Four bottles of beer on the wall, four bottles of beer.",
  605.                         "Take one down and pass it around, three bottles of beer on the wall.",
  606.                         "",
  607.                         "Three bottles of beer on the wall, three bottles of beer.",
  608.                         "Take one down and pass it around, two bottles of beer on the wall.",
  609.                         "",
  610.                         "Two bottles of beer on the wall, two bottles of beer.",
  611.                         "Take one down and pass it around, one bottle of beer on the wall.",
  612.                         "",
  613.                         "One bottle of beer on the wall, one bottle of beer.",
  614.                         "Take one down and pass it around, no more bottles of beer on the wall.",
  615.                         "",
  616.                         "No more bottles of beer on the wall, no more bottles of beer.",
  617.                         "Go to the store and buy some more, one hundred bottles of beer on the wall."},
  618.                 lyricsForOneHundredBottlesOfBeerSong());
  619.     }
  620.  
  621.     private static void assertEqualsArrayValues(final String[] expectedLines, final String[] actualLines) {
  622.         assertEqualsArrayValues(null, expectedLines, actualLines);
  623.     }
  624.  
  625.     private static void assertEqualsArrayValues(final String message, final String[] expectedLines, final String[] actualLines) {
  626.         final var expectedAsString = Arrays.stream(expectedLines).collect(Collectors.joining(System.lineSeparator()));
  627.         final var actualAsString = Arrays.stream(actualLines).collect(Collectors.joining(System.lineSeparator()));
  628.         assertEquals(message, expectedAsString, actualAsString);
  629.     }
  630.  
  631. }
  632.  
Tags: 99 Bottles
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement