def test_is_an_bn(self): self.assertFalse(is_an_bn("")) self.assertFalse(is_an_bn("rado")) self.assertFalse(is_an_bn("aaabb")) self.assertTrue(is_an_bn("aaabbb")) self.assertFalse(is_an_bn("aabbaabb")) self.assertFalse(is_an_bn("bbbaaa")) self.assertTrue(is_an_bn("aaaaabbbbb")) self.assertFalse(is_an_bn("baba"))
def tests_self(self): self.assertEqual(True, solution.is_an_bn('')) self.assertEqual(False, solution.is_an_bn("rado")) self.assertEqual(False, solution.is_an_bn("aaabb")) self.assertEqual(True, solution.is_an_bn("aaabbb")) self.assertEqual(False, solution.is_an_bn("aabbaabb")) self.assertEqual(False, solution.is_an_bn("aabbaabb")) self.assertEqual(False, solution.is_an_bn("bbbaaa")) self.assertEqual(True, solution.is_an_bn("aaaaabbbbb"))
def test_is_an_bn(self): self.assertEqual(is_an_bn(""), True) self.assertEqual(is_an_bn("rado"), False) self.assertEqual(is_an_bn("aaabb"), False) self.assertEqual(is_an_bn("aaabbb"), True) self.assertEqual(is_an_bn("aabbaabb"), False) self.assertEqual(is_an_bn("bbbaaa"), False) self.assertEqual(is_an_bn("aaaaabbbbb"), True)
def test_is_an_bn(self): self.assertEqual(True, solution.is_an_bn("")) self.assertEqual(False, solution.is_an_bn("rado")) self.assertEqual(False, solution.is_an_bn("aaabb")) self.assertEqual(True, solution.is_an_bn("aaabbb")) self.assertEqual(False, solution.is_an_bn("aabbaabb")) self.assertEqual(False, solution.is_an_bn("bbbaaa")) self.assertEqual(True, solution.is_an_bn("aaaaabbbbb"))
def test_word_is_an_bn(self): self.assertEqual(True,is_an_bn("")) self.assertEqual(False,is_an_bn("rado")) self.assertEqual(False,is_an_bn("aaabb")) self.assertEqual(True,is_an_bn("aaabbb")) self.assertEqual(False,is_an_bn("aabbaabb")) self.assertEqual(False,is_an_bn("bbbaaa")) self.assertEqual(True,is_an_bn("aaaaabbbbb"))
def test_is_an_bn(self): self.assertTrue(solution.is_an_bn("")) self.assertFalse(solution.is_an_bn("rado")) self.assertFalse(solution.is_an_bn("aaabb")) self.assertTrue(solution.is_an_bn("aaabbb")) self.assertFalse(solution.is_an_bn("aabbaabb")) self.assertFalse(solution.is_an_bn("bbbaaa")) self.assertTrue(solution.is_an_bn("aaaaabbbbb"))
def test_problem_statement_cases(self): self.assertEqual(True, is_an_bn("")) self.assertEqual(False, is_an_bn("rado")) self.assertEqual(False, is_an_bn("aaabb")) self.assertEqual(True, is_an_bn("aaabbb")) self.assertEqual(False, is_an_bn("aabbaabb")) self.assertEqual(False, is_an_bn("bbbaaa")) self.assertEqual(True, is_an_bn("aaaaabbbbb"))
def test_is_an_bn(self): self.assertTrue(True, is_an_bn("")) # True self.assertFalse(False, is_an_bn("rado")) # False self.assertFalse(False, is_an_bn("aaabb")) # False self.assertTrue(True, is_an_bn("aaabbb")) # True self.assertFalse(False, is_an_bn("aabbaabb")) # False self.assertFalse(False, is_an_bn("bbbaaa")) # False self.assertTrue(True, is_an_bn("aaaaabbbbb"))
def test_six(self): self.assertTrue(not solution.is_an_bn("bbbaaa"))
def test_is_an_bn_0(self): self.assertEqual(True, is_an_bn("helgi"))
def test_is_an_bn2(self): self.assertEqual(True, solution.is_an_bn('aaaaabbbbb'))
def test_is_an_bn(self): self.assertTrue(is_an_bn("")) self.assertTrue(not is_an_bn("rado"))
def test_is_an_bn_2(self): self.assertEqual(False, solution.is_an_bn("rado"))
def test_is_an_bn3(self): self.assertEqual(False, solution.is_an_bn('rado'))
def test_is_an_bn_aaaaabbbbb(self): self.assertEqual("True", solution.is_an_bn("aaaaabbbbb"))
def test_is_an_bn_5(self): self.assertEqual(False, solution.is_an_bn("aabbaabb"))
def test_2(self): self.assertEqual(False, is_an_bn("rado"))
def test_is_an_bn_bbbaaa(self): self.assertEqual("False", solution.is_an_bn("bbbaaa"))
def test_is_an_bn(self): self.assertTrue(solution.is_an_bn('')) self.assertTrue(solution.is_an_bn('aabb')) self.assertFalse(solution.is_an_bn('aaabb'))
def test_two(self): self.assertEquals(is_an_bn("rado"), False)
def test_false(self): self.assertFalse(solution.is_an_bn("pepi"))
def test_is_an_bn6(self): self.assertTrue(not solution.is_an_bn("aaabbbb"))
def test_is_an_bn(self): self.assertEqual("True", solution.is_an_bn(""))
def test_is_an_bn1(self): self.assertTrue(solution.is_an_bn(""))
def test_is_an_bn_rado(self): self.assertEqual("False", solution.is_an_bn("rado"))
def test_is_an_bn_7(self): self.assertEqual(True, solution.is_an_bn("aaaaabbbbb"))
def test_two(self): self.assertFalse(is_an_bn("rado"))
def test_three(self): self.assertFalse(is_an_bn("aaabb"))
def test_is_an_bn5(self): self.assertEqual(True, solution.is_an_bn(''))
def test_four(self): self.assertTrue(is_an_bn("aaabbb"))
def test_true(self): self.assertTrue(solution.is_an_bn("aaabbb"))
def test_five(self): self.assertFalse(is_an_bn("aabbaabb"))
def test_five(self): self.assertTrue(not solution.is_an_bn("aabbaabb"))
def test_six(self): self.assertFalse(is_an_bn("bbbaaa"))
def test_is_an_bn_2(self): self.assertEqual(False, is_an_bn("aabbaabb"))
def test_seven(self): self.assertTrue(is_an_bn("aaaaabbbbb"))
def test_is_an_bn_1(self): self.assertEqual(True, is_an_bn(""))
def test_one(self): self.assertTrue(is_an_bn(""))
def test_is_an_bn8(self): self.assertTrue(not solution.is_an_bn("abab"))
def test_one(self): self.assertEquals(is_an_bn(""), True)
def test_is_an_bn2(self): self.assertTrue(not solution.is_an_bn("rado"))
def test_seven(self): self.assertEquals(is_an_bn("aaaaabbbbb"), True)
def test_is_an_bn_6(self): self.assertEqual(False, solution.is_an_bn("bbbaaa"))
def test_six(self): self.assertEquals(is_an_bn("bbbaaa"), False)
def test_is_an_bn_1(self): self.assertEqual(True, solution.is_an_bn(""))
def test_true_empty(self): self.assertTrue(solution.is_an_bn(""))
def test_is_an_bn4(self): self.assertEqual(True, solution.is_an_bn('bbaa'))
def test_is_an_bn1(self): self.assertEqual(False, solution.is_an_bn('aabbaabb'))
def test_five(self): self.assertEquals(is_an_bn("aabbaabb"), False)