test(pcnt): fix pcnt example pytest

This commit is contained in:
Chen Jichang
2025-11-04 15:05:04 +08:00
parent a0b589c147
commit c696401782
@@ -17,6 +17,6 @@ def test_rotary_encoder(dut: Dut) -> None:
dut.expect_exact('add watch points and register callbacks')
dut.expect_exact('clear pcnt unit')
dut.expect_exact('start pcnt unit')
res = dut.expect(r'Pulse count: (\d+)')
res = dut.expect(r'(?:Pulse count|Watch point event, count): (-?\d+)')
count_val = res.group(1).decode('utf8')
assert -100 <= int(count_val) <= 100