From c47cb0db38d282ea83c585119cbb76b57ce67ff8 Mon Sep 17 00:00:00 2001 From: Sean Young Date: Mon, 6 May 2024 09:44:47 +0100 Subject: [PATCH] Fix NRC17 in testing Signed-off-by: Sean Young --- irp/tests/bpf_decoding.rs | 4 +++- irp/tests/tests.rs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/irp/tests/bpf_decoding.rs b/irp/tests/bpf_decoding.rs index 899d0aa..6510bed 100644 --- a/irp/tests/bpf_decoding.rs +++ b/irp/tests/bpf_decoding.rs @@ -50,6 +50,8 @@ fn decode_all() { let max_gap = if protocol.name == "Epson" { 100000 + } else if protocol.name == "NRC17" { + 110500 } else { 20000 }; @@ -161,7 +163,7 @@ fn decode_all() { failing_protocols.len() ); - assert_eq!(failing_protocols.len(), 39); + assert_eq!(failing_protocols.len(), 38); } fn bpf_decode(dfa: &DFA, options: &Options, name: &str, message: &Message) -> Vec { diff --git a/irp/tests/tests.rs b/irp/tests/tests.rs index 0829ee4..7c224a7 100644 --- a/irp/tests/tests.rs +++ b/irp/tests/tests.rs @@ -456,6 +456,8 @@ fn decode_all() { let max_gap = if protocol.name == "Epson" { 100000 + } else if protocol.name == "NRC17" { + 110500 } else { 20000 }; @@ -571,7 +573,7 @@ fn decode_all() { println!("tests: {total_tests} fails: {fails}"); println!("Failed protocols: {failed_protocols:?}"); - let expected_failures = HashSet::from(["Pioneer-2Part", "NRC17", "Epson", "F12x", "Roku-8bit"]); + let expected_failures = HashSet::from(["Pioneer-2Part", "Epson", "F12x", "Roku-8bit"]); assert_eq!(failed_protocols, expected_failures); }