def test_zero_two(self): # Test if zero and two give expected results in_out = ((0, 0), (2, 0.769800358919501)) for input, output in in_out: res = IRT.vdk(input) self.assertEqual(res, output)
def test_table_from_TRP(self): # Page 51 from the TRP reader has a table with in and outputs. It is used to verify the function here in_out = ((1.05, 0.6177), (1.10, 0.6284), (1.12, 0.6325), (1.19, 0.6466), (1.23, 0.6543), (1.31, 0.6691), (1.38, 0.6813), (1.65, 0.7238)) for input, output in in_out: res = IRT.vdk(input) self.assertEqual(round(res, 4), output)