def test_insert_insert_3(self): o1 = transform.insert_helper(3, 'z') o2 = transform.insert_helper(3, 'z') expected = None received = transform.transform(o2, o1) self.assertEqual(expected, received)
def test_insert_delete_2(self): o1 = transform.delete_helper(0) o2 = transform.insert_helper(10, 'x') expected = transform.insert_helper(9, 'x') received = transform.transform(o2, o1) self.assertEqual(expected, received)
def test_insert_insert_5(self): o1 = transform.insert_helper(0, 'z') o2 = transform.insert_helper(0, 'x') expected = transform.insert_helper(1, 'x') received = transform.transform(o2, o1) self.assertEqual(expected, received)
def test_multiple_transform_8(self): o1 = transform.delete_helper(0) o2 = transform.insert_helper(1, "Gettin' Up") o3 = transform.insert_helper(0, 'Galaxies') expected = o3 received = transform.transform_many(o3, [o1, o2]) self.assertEqual(expected, received)
def test_multiple_transform_5(self): o1 = transform.insert_helper(4, 'x') o2 = transform.delete_helper(7) o3 = transform.insert_helper(4, 'x') expected = None received = transform.transform_many(o3, [o1, o2]) self.assertEqual(expected, received)
def test_multiple_transform_2(self): o1 = transform.insert_helper(1, 'x') o2 = transform.insert_helper(2, 'y') o3 = transform.insert_helper(3, 'z') expected = transform.insert_helper(5, 'z') received = transform.transform_many(o3, [o1, o2]) self.assertEqual(expected, received)
def test_multiple_transform_1(self): o1 = transform.delete_helper(0) o2 = transform.insert_helper(5, 'z') o3 = transform.insert_helper(10, 'x') expected = o3 received = transform.transform_many(o3, [o1, o2]) self.assertEqual(expected, received)
def test_delete_insert_2(self): o1 = transform.insert_helper(3, 'z') o2 = transform.delete_helper(3) expected = transform.delete_helper(4) received = transform.transform(o2, o1) self.assertEqual(expected, received)
def test_multiple_transform_4(self): o1 = transform.insert_helper(4, 'x') o2 = transform.delete_helper(7) expected = transform.delete_helper(8) received = transform.transform_many(o2, [o1]) self.assertEqual(expected, received)