Example #1
0
 def testSingleWord_valid(self):
     self.assertTrue(day4_lib.ValidPassphrase("abc"))
Example #2
0
 def testFifthAnagramBan_invalid(self):
     self.assertFalse(day4_lib.ValidPassphrase("oiii ioii iioi iiio", True))
Example #3
0
 def testEmpty_valid(self):
     self.assertFalse(day4_lib.ValidPassphrase(""))
Example #4
0
 def testThirdAnagramBan_valid(self):
     self.assertTrue(day4_lib.ValidPassphrase("a ab abc abd abf abj", True))
Example #5
0
 def testFourthAnagramBan_valid(self):
     self.assertTrue(
         day4_lib.ValidPassphrase("iiii oiii ooii oooi oooo", True))
Example #6
0
 def testSecondAnagramBan_invalid(self):
     self.assertFalse(day4_lib.ValidPassphrase("abcde xyz ecdab", True))
Example #7
0
 def testFirstAnagramBan_valid(self):
     self.assertTrue(day4_lib.ValidPassphrase("abcde fghij", True))
Example #8
0
 def testThirdInput_valid(self):
     self.assertTrue(day4_lib.ValidPassphrase("aa bb cc dd aaa"))
Example #9
0
 def testSecondInput_invalid(self):
     self.assertFalse(day4_lib.ValidPassphrase("aa bb cc dd aa"))
Example #10
0
 def testFirstInput_valid(self):
     self.assertTrue(day4_lib.ValidPassphrase("aa bb cc dd ee"))