From ead58f66b9818c1ac01232b1e137c0d2a6ea06a2 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 16 Jun 2024 12:23:05 -0700 Subject: commit unshippable wildly unsafe asm-filled printing code write_2 will never actually be used, but im adapting it into contextualize in a... better way --- test/long_mode/mod.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index b725287..21b92e6 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -62,6 +62,19 @@ fn test_display_under(decoder: &InstDecoder, data: &[u8], expected: &'static str text, expected ); + /* + let mut text2 = String::new(); + instr.write_2(&mut text2); + assert!( + text2 == text, + "display error for {}:\n decoded: {:?} under decoder {}\n displayed: {}\n expected: {}\n", + hex, + instr, + decoder, + text2, + text, + ); + */ } else { eprintln!("non-fmt build cannot compare text equality") } -- cgit v1.1