diff options
author | iximeow <me@iximeow.net> | 2024-06-16 12:23:05 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2024-06-16 12:23:05 -0700 |
commit | ead58f66b9818c1ac01232b1e137c0d2a6ea06a2 (patch) | |
tree | f1376c4c8f6cc295750a05e4ae9ea0f81d7c38c4 /test | |
parent | fe2917be66f1ac0c138ab6f5628f6b73e7626952 (diff) |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/long_mode/mod.rs | 13 |
1 files changed, 13 insertions, 0 deletions
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") } |