diff --git a/src/cfdp/tlv.rs b/src/cfdp/tlv.rs index d4ae3fa..71830b8 100644 --- a/src/cfdp/tlv.rs +++ b/src/cfdp/tlv.rs @@ -436,7 +436,8 @@ impl<'first_name, 'second_name> FilestoreRequestTlv<'first_name, 'second_name> { #[cfg(test)] mod tests { - use crate::cfdp::tlv::{Tlv, TlvType, TlvTypeField}; + use crate::cfdp::lv::Lv; + use crate::cfdp::tlv::{FilestoreRequestTlv, Tlv, TlvType, TlvTypeField}; use crate::cfdp::TlvLvError; use crate::util::{UbfU8, UnsignedEnum}; @@ -560,4 +561,12 @@ mod tests { assert_eq!(tlv.len_value(), 1); assert_eq!(tlv.len_full(), 3); } + + #[test] + fn test_fs_request_basic() { + let first_name = Lv::new_from_str("hello.txt").unwrap(); + let fs_request = FilestoreRequestTlv::new_create_file(first_name); + assert!(fs_request.is_ok()); + let fs_request = fs_request.unwrap(); + } }