Skip to content

Commit

Permalink
Fixed tests for new Direction API
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagliughi committed Sep 24, 2023
1 parent d884019 commit 0819e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ mod tests {

let idx_chan = dev.get_channel(0).unwrap();
let id = idx_chan.id().unwrap();
let output = idx_chan.is_output();
let dir = idx_chan.direction();

let id_chan = dev.find_channel(&id, output).unwrap();
let id_chan = dev.find_channel(&id, dir).unwrap();
assert_eq!(id_chan, idx_chan);
}
}

0 comments on commit 0819e54

Please sign in to comment.