def create_random_matrix(self): self.logger.log('Button create_random_matrix clicked') self.created_random_matrix.clear() if self.button_convert_state == 'normal': matrix = BisymmetricMatrix() self.set_created_random_matrix( matrix.generate_random_bisymmetric_matrix(self.matrix_size))
def test_generate_bisymmetric_is_bisymmetric(self): correct_bisymmetric_matrix = BisymmetricMatrix() correct_bisymmetric_matrix.generate_random_bisymmetric_matrix(10) self.assertTrue(correct_bisymmetric_matrix.is_bisymmetric())