kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
test: fixed serial_to_parallel test
The serial_to_parallel function already has fixed division by zero, thus it will not throw it. Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>pull/162/head
rodzic
00822f4a9f
commit
f3fd518ead
|
@ -77,7 +77,6 @@ class TestRFTools(unittest.TestCase):
|
|||
complex(50, 10))
|
||||
|
||||
def test_serial_to_parallel(self):
|
||||
self.assertRaises(ZeroDivisionError, serial_to_parallel, 0)
|
||||
self.assertAlmostEqual(
|
||||
serial_to_parallel(complex(50, 10)),
|
||||
complex(52, 260))
|
||||
|
|
Ładowanie…
Reference in New Issue