use trevors_utilities::data_to_text::DataToText; #[test] fn data_to_text() { let data_to_display: &[u8] = &[ 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74, 0x20, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, 0x20, ]; let expected_data: &str = "0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x20 fghijklmnopqrst \n0x76 0x77 0x78 0x79 0x7a 0x7b 0x7c 0x7d 0x7e 0x7f 0x20 "; let actual_data = DataToText::data_to_text(data_to_display); assert_eq!(actual_data, expected_data); } #[test] fn quickbrownfoxtest() { let test_params = vec![ "quickbrownfox" ]; // load the content from quickbrownfox.bin // format it for display // load the content from quickbrownfox.display // compare the formatted data to the loaded content. }