JeffGrigg

2nd Test Passes

Feb 8th, 2024
9,440
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 2.12 KB | Software | 0 0
  1. import junit.framework.TestCase;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.Arrays;
  5. import java.util.stream.Collectors;
  6.  
  7. public class NBottlesOfBeerOnTheWallTest extends TestCase {
  8.  
  9.     private static String[] lyricsForBottlesOfBeer(final int numberOfBottlesOfBeer) {
  10.         final var lines = new ArrayList<String>();
  11.         if (numberOfBottlesOfBeer == 1) {   // [Yes, this condition is intentionally wrong.]
  12.             lines.add("1 bottle of beer on the wall, 1 bottle of beer.");
  13.             lines.add("Take one down and pass it around, no more bottles of beer on the wall.");
  14.             lines.add("");
  15.         }
  16.         lines.add("No more bottles of beer on the wall, no more bottles of beer.");
  17.         lines.add("Go to the store and buy some more, 99 bottles of beer on the wall.");
  18.         return lines.toArray(new String[lines.size()]);
  19.     }
  20.  
  21.     public void testZeroBottlesOfBeer() {
  22.         assertEqualsArrayValues(new String[]{
  23.                         "No more bottles of beer on the wall, no more bottles of beer.",
  24.                         "Go to the store and buy some more, 99 bottles of beer on the wall."},
  25.                 lyricsForBottlesOfBeer(0));
  26.     }
  27.  
  28.     public void testOneBottleOfBeer() {
  29.         assertEqualsArrayValues(new String[]{
  30.                         "1 bottle of beer on the wall, 1 bottle of beer.",
  31.                         "Take one down and pass it around, no more bottles of beer on the wall.",
  32.                         "",
  33.                         "No more bottles of beer on the wall, no more bottles of beer.",
  34.                         "Go to the store and buy some more, 99 bottles of beer on the wall."
  35.                 },
  36.                 lyricsForBottlesOfBeer(1));
  37.     }
  38.  
  39.     private static void assertEqualsArrayValues(final String[] expectedLines, final String[] actualLines) {
  40.         final var expectedAsString = Arrays.stream(expectedLines).collect(Collectors.joining(System.lineSeparator()));
  41.         final var actualAsString = Arrays.stream(actualLines).collect(Collectors.joining(System.lineSeparator()));
  42.         assertEquals(expectedAsString, actualAsString);
  43.     }
  44.  
  45. }
  46.  
Tags: 99 Bottles
Advertisement
Comments
  • Sarwamor
    69 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • Korpotor
    62 days
    # CSS 0.06 KB | 0 0
    1. We just shared HQ data on our channel: https://t.me/theprotocolone
Add Comment
Please, Sign In to add comment