Commit 22fc6852 authored by SETaratukhina's avatar SETaratukhina
Browse files

Update test.py

parent 21ec0366
Pipeline #3931 failed with stage
in 4 seconds
......@@ -22,11 +22,11 @@ class test(unittest.TestCase):
def testRlsPeleng(self):
air1 = TAircraft(20, 10, 250, math.pi / 3)
def testRlsPeleng(self):
air1 = TAircraft(50, 100, 150, math.pi / 3)
air2 = TAircraft(2000, 2000, 200, math.pi / 6)
mis1 = TMissle(100, 50, 50, math.pi / 4, 30)
mis1 = TMissle(1100, 50, 50, math.pi / 4, 40)
mis2 = TMissle(1100, 2100, 150, math.pi / 4, 30)
Rls = RLS(50, 100, 900)
......@@ -41,11 +41,8 @@ class test(unittest.TestCase):
for line in f:
lines.append(line)
f.close()
true_lines = ['0.1; Missle #1; D = 514.929470155641; Az = 0.8501314037713014\n']
self.assertEqual(lines, true_lines)
print('All tests passed correctly!')
true_lines = ['0.1; Missle #1; D = 800.0816802618212; Az = -0.5833653191723325\n',
'0.2; Missle #1; D = 878.9031872075412; Az = -1.3249358352416782\n']
if __name__ == '__main__':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment