use libsip::{headers::parse::parse_authentication_info_header, Header}; use nom::error::VerboseError; #[test] fn write() { let header = Header::AuthenticationInfo("".into()); assert_eq!( "Authentication-Info: ".to_string(), format!("{}", header) ); } #[test] fn read() { let remains = vec![]; let header = Header::AuthenticationInfo("".into()); assert_eq!( Ok((remains.as_ref(), header)), parse_authentication_info_header::>( b"Authentication-Info: \r\n" ) ); }