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))
 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))
Example #3
0
 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))
Example #4
0
 def test_when_n_is_5(self):
     self.assertEqual(pTableServer.get_table(5),
                      pTable.calculate(vTableServer.get_table(5)))
 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))
Example #6
0
 def test_when_n_is_5(self):
   self.assertEqual(pTableServer.get_table(5), pTable.calculate(vTableServer.get_table(5)))