From 2483d25f795d422ec1a11068912337375eebcf30 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 4 Jan 2019 10:43:57 +0100 Subject: [PATCH] test/test_ecc: update --- test/test_ecc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_ecc.py b/test/test_ecc.py index ba87e14..e5a9af1 100755 --- a/test/test_ecc.py +++ b/test/test_ecc.py @@ -72,23 +72,23 @@ class TestECC(unittest.TestCase): if nerrors < 2: if (yield dut.decoder.o) != data: dut.errors += 1 - # if 0 error, verify sec == 0 / dec == 0 + # if 0 error, verify sec == 0 / ded == 0 if nerrors == 0: if (yield dut.decoder.sec) != 0: dut.errors += 1 - if (yield dut.decoder.dec) != 0: + if (yield dut.decoder.ded) != 0: dut.errors += 1 # if 1 error, verify sec == 1 / dec == 0 elif nerrors == 1: if (yield dut.decoder.sec) != 1: dut.errors += 1 - if (yield dut.decoder.dec) != 0: + if (yield dut.decoder.ded) != 0: dut.errors += 1 - # if 2 errors, verify sec == 0 / dec == 1 + # if 2 errors, verify sec == 0 / ded == 1 elif nerrors == 2: if (yield dut.decoder.sec) != 0: dut.errors += 1 - if (yield dut.decoder.dec) != 1: + if (yield dut.decoder.ded) != 1: dut.errors += 1 for i in range(3):