aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-22 15:18:31 -0700
committeriximeow <me@iximeow.net>2024-06-22 15:18:31 -0700
commitbebdead98a9fa6510e30dbde6cc694f52a346a1e (patch)
tree5063632fcd3571854133dac0406d856ba8a661a6 /test
parent347042c45ced56b37a665a2c4b042b7f7aae8e03 (diff)
NoColorsSink has a decent name now
Diffstat (limited to 'test')
-rw-r--r--test/long_mode/mod.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs
index 96c7c79..6c666e1 100644
--- a/test/long_mode/mod.rs
+++ b/test/long_mode/mod.rs
@@ -79,14 +79,12 @@ fn test_display_under(decoder: &InstDecoder, data: &[u8], expected: &'static str
);
let mut text2 = String::new();
- let mut out = yaxpeax_arch::display::NoColorsSink {
- out: &mut text2,
- };
+ let mut out = yaxpeax_arch::display::FmtSink::new(&mut text2);
instr.write_to(&mut out).expect("printing succeeds");
assert!(
text2 == text,
- "display error through NoColorsSink for {}:\n decoded: {:?} under decoder {}\n displayed: {}\n expected: {}\n",
+ "display error through FmtSink for {}:\n decoded: {:?} under decoder {}\n displayed: {}\n expected: {}\n",
hex,
instr,
decoder,