def test_calculate_approximate_table_when_n_is_5(self):
   calculation_result = approximateTable.calculate(pTableServer.get_table(5), gaussianPtableServer.get_table(5))
   self.assertEqual(calculation_result, approximateTableServer.get_table(5))
 def test_P_write_read(self):
   fileName = "temp.txt"
   matrixUtils.write_P_table(pTableServer.get_table(5), fileName)
   self.assertEqual(matrixUtils.read_P_table(fileName), pTableServer.get_table(5))
Exemple #3
0
 def test_when_n_is_5(self):
   self.assertEqual(pTableServer.get_table(5), pTable.calculate(vTableServer.get_table(5)))