Commit 60f52237 authored by SETaratukhina's avatar SETaratukhina
Browse files

Update test.py

parent 22fc6852
Pipeline #3932 failed with stage
in 5 seconds
......@@ -23,13 +23,13 @@ class test(unittest.TestCase):
def testRlsPeleng(self):
air1 = TAircraft(50, 100, 150, math.pi / 3)
air2 = TAircraft(2000, 2000, 200, math.pi / 6)
air1 = TAircraft(250, 100, 100, math.pi / 3)
air2 = TAircraft(200, 110, 100, math.pi / 4)
mis1 = TMissle(1100, 50, 50, math.pi / 4, 40)
mis2 = TMissle(1100, 2100, 150, math.pi / 4, 30)
mis1 = TMissle(2500, -144, 1070, math.pi / 4, 50)
mis2 = TMissle(108, 277, 278, math.pi / 4, 50)
Rls = RLS(50, 100, 900)
Rls = RLS(50, 100, 1000)
Rls.Targets.append(air1)
Rls.Targets.append(air2)
Rls.Targets.append(mis1)
......@@ -41,8 +41,9 @@ class test(unittest.TestCase):
for line in f:
lines.append(line)
f.close()
true_lines = ['0.1; Missle #1; D = 800.0816802618212; Az = -0.5833653191723325\n',
'0.2; Missle #1; D = 878.9031872075412; Az = -1.3249358352416782\n']
true_lines = ['0.1; Aircraft #1; D = 879.5831366738453; Az = 1.1925584275755705\n','0.1; Aircraft #2; D = 854.9744193981306; Az = 0.8572177922360511\n']
self.assertEqual(lines, true_lines)
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