This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[test] | |
fn test_disordered_frames { | |
let mut driver = StubDriver::default(); | |
let clock = ClockOwner::default(); | |
let mut rx: CanReceiver<StubClock, StubDriver> = CanReceiver::new(120u8.try_into().unwrap()); | |
let subject = SubjectId::try_from(39).unwrap(); | |
rx.subscribe_message(subject, 8, duration(100), &mut driver) | |
.unwrap(); | |
// Nominal priority, message transfer, non-anonymous | |
let frame_id = 0b1000_0011_0000000100111_01001011.try_into().unwrap(); |