Skip to content

Commit

Permalink
Fix NRC17 in testing
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed May 6, 2024
1 parent c6e9b14 commit c47cb0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion irp/tests/bpf_decoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ fn decode_all() {

let max_gap = if protocol.name == "Epson" {
100000
} else if protocol.name == "NRC17" {
110500
} else {
20000
};
Expand Down Expand Up @@ -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<u64> {
Expand Down
4 changes: 3 additions & 1 deletion irp/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ fn decode_all() {

let max_gap = if protocol.name == "Epson" {
100000
} else if protocol.name == "NRC17" {
110500
} else {
20000
};
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit c47cb0d

Please sign in to comment.