additional test for new method
This commit is contained in:
parent
3ba575aac1
commit
407d1e1154
@ -99,4 +99,13 @@ mod tests {
|
|||||||
assert!(msg_to_user.raw_data().is_none());
|
assert!(msg_to_user.raw_data().is_none());
|
||||||
assert!(!msg_to_user.is_reserved_cfdp_msg());
|
assert!(!msg_to_user.is_reserved_cfdp_msg());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_reserved_msg() {
|
||||||
|
let reserved_str = "cfdp";
|
||||||
|
let msg_to_user = MsgToUserTlv::new(reserved_str.as_bytes());
|
||||||
|
assert!(msg_to_user.is_ok());
|
||||||
|
let msg_to_user = msg_to_user.unwrap();
|
||||||
|
assert!(msg_to_user.is_reserved_cfdp_msg());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user