def test_concat(self): r = str_calculator("a", "b", 'concat') self.assertEqual(r, 'ab')
def test_contain(self): r = str_calculator('a', 'bbbaaa', 'contain') self.assertEqual(r, True)
def test_endsWith(self): r = str_calculator('a', 'ba', 'endsWith') #self.assertEqual(r, True) self.assertTrue(r)
def test_startsWith(self): r = str_calculator('xyz', 'xyzzzzzz', 'endsWith') self.assertEqual(r, True)
def test_contain_when_true(self): r = str_calculator("ala", "ala ma kota", 'contains') self.assertEqual(r, True)
def test_endsWith(self): r = str_calculator() r = str_calculator("a", "hhhhhha", 'endsWith') self.assertEqual(r, True)
def test_contain_when_false(self): r = str_calculator("xxx", "ala ma kota", 'contains') self.assertEqual(r, False)
def test_lacz(self): r = str_calculator('a', 'b', 'lacz') self.assertEqual(r, 'ab')
def test_awb(self): r = str_calculator('a', 'b', 'awb') self.assertEqual(r, False)