1 2 3 4 5 6 7 8 9 10 11 12
#[cfg(feature = "std")] #[test] fn std_string() { use ethercrab_wire::EtherCrabWireRead; let input = "Hello world".as_bytes(); assert_eq!( String::unpack_from_slice(input), Ok("Hello world".to_string()) ); }