예제 #1
0
 @Test
 public void testCountCharacterOccurrencesInString_Q() {
   assertEquals(1, StringyThingies.countCharacterOccurrencesInString('Q', "Quill quarters"));
 }
예제 #2
0
 @Test
 public void testFullHouse3() {
   assertFalse(StringyThingies.hasFullHouse("YYZZZ"));
 }
예제 #3
0
 @Test
 public void testCountCharacterOccurrencesInString_a() {
   assertEquals(2, StringyThingies.countCharacterOccurrencesInString('a', "animal"));
 }
예제 #4
0
 @Test
 public void testAreAnagrams_False() {
   assertFalse(StringyThingies.areAnagrams("dinner", "breakfast"));
 }
예제 #5
0
 @Test
 public void testAreAnagrams_False2() {
   assertFalse(StringyThingies.areAnagrams("silentt", "listenn"));
 }
예제 #6
0
 //	// Next Block!
 //
 @Test
 public void testIsPalindrome_OddLetters() {
   assertTrue(StringyThingies.isPalindrome("level"));
 }
예제 #7
0
 @Test
 public void testIsPalindrome_EvenLetters() {
   assertTrue(StringyThingies.isPalindrome("noon"));
 }
예제 #8
0
 @Test
 public void testSwitcharoo3() {
   assertEquals(
       "K oo rKat onm'Idn are lge iZk c aJmaI",
       StringyThingies.switcharoo("I am Jack Ziegler and I'm not a KrooK"));
 }
예제 #9
0
 @Test
 public void testSwitcharoo4() {
   assertEquals("YOLO SWAGGING", StringyThingies.switcharoo("GNIG GAWSOLOY"));
 }
예제 #10
0
 @Test
 public void testSwitcharoo1() {
   assertEquals("tsa fsnur esro hehT", StringyThingies.switcharoo("The horse runs fast"));
 }
예제 #11
0
 @Test
 public void testSwitcharoo2() {
   assertEquals(" s emiT ojo dehtevolI ", StringyThingies.switcharoo(" I love the dojoTimes "));
 }
예제 #12
0
 @Test
 public void testAllAreCards() {
   assertTrue(StringyThingies.allAreCards("23456789TJQKA"));
   assertFalse(StringyThingies.allAreCards("Nope"));
 }
예제 #13
0
 @Test
 public void testFullHouse4() {
   assertFalse(StringyThingies.hasFullHouse("23456"));
 }
예제 #14
0
 @Test
 public void testIsCharacterInString_Empty() {
   assertFalse(StringyThingies.isCharacterInString('a', ""));
 }
예제 #15
0
 @Test
 public void testHasEveryLetterOfAlphabet_Fox() {
   assertTrue(
       StringyThingies.hasEveryLetterOfAlphabet("the quick brown fox jumps over the lazy dog"));
 }
예제 #16
0
 @Test
 public void testSwitcharoo5() {
   assertEquals("  YD  DUBIH ", StringyThingies.switcharoo("  HI  BUDDY "));
 }
예제 #17
0
 @Test
 public void testHasEveryLetterOfAlphabet_Burger() {
   assertFalse(StringyThingies.hasEveryLetterOfAlphabet("burger"));
 }
예제 #18
0
 @Test
 public void testIsCharacterInString_b() {
   assertFalse(StringyThingies.isCharacterInString('b', "apple"));
 }
예제 #19
0
 @Test
 public void testIsCharacterInString_a() {
   assertTrue(StringyThingies.isCharacterInString('a', "apple"));
 }
예제 #20
0
 @Test
 public void testSwitcharoo8() {
   assertEquals("BQ A  Q", StringyThingies.switcharoo("QA Q  B"));
 }
예제 #21
0
 @Test
 public void testIsPalindrome_NotPalindrome() {
   assertFalse(StringyThingies.isPalindrome("batman"));
 }
예제 #22
0
 @Test
 public void testIsCharacterInString_F() {
   assertFalse(StringyThingies.isCharacterInString('F', "fffff"));
 }
예제 #23
0
 @Test
 public void testAreAnagrams_True2() {
   assertTrue(StringyThingies.areAnagrams("silentt", "listent"));
 }
예제 #24
0
 @Test
 public void testIsCharacterInString_WeirdCharacter() {
   assertTrue(StringyThingies.isCharacterInString('$', "ke$ha"));
 }
예제 #25
0
 @Test
 public void testFullHouse1() {
   assertTrue(StringyThingies.hasFullHouse("TT333"));
 }
예제 #26
0
 @Test
 public void testFullHouse2() {
   assertTrue(StringyThingies.hasFullHouse("24242"));
 }