def verify_results(self):
        # Verify recorded results match expectations.

        num_params = self.model.driver.total_parameters()

        results = self.model.driver.case_outputs.driven.rosen_suzuki
        if self.model.driver.distribution_generator.form != "CENTRAL":
            self.assertEqual(len(results), 1 + num_params * self.order)
        else:
            if self.model.driver.distribution_generator.order % 2 == 1:
                self.assertEqual(len(results), num_params * (self.order+1))
            else:
                self.assertEqual(len(results), 1 + num_params * self.order)

        inputs = self.model.driver.case_inputs.driven
        for i, result in enumerate(results):
            x0 = inputs.x0[i]
            x1 = inputs.x1[i]
            x2 = inputs.x2[i]
            x3 = inputs.x3[i]
            self.assertEqual(result, rosen_suzuki(x0, x1, x2, x3))
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/drivers/test/test_distributioncasedriver.py/TestCase.verify_results/original