From 3b300f3625e6cf9ea1f36ba6d12b61ba0b08e53b Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 6 Jan 2019 02:18:59 -0800 Subject: another testcase --- test/test.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/test.rs b/test/test.rs index 166faff..54b52b8 100644 --- a/test/test.rs +++ b/test/test.rs @@ -105,6 +105,9 @@ fn test_test_cmp() { #[test] fn test_misc() { assert_eq!(&format!("{}", decode( + &[0x48, 0x8d, 0xa4, 0xc7, 0x20, 0x00, 0x00, 0x12] + ).unwrap()), "lea rsp, [rdi + rax * 8 + 0x12000020]"); + assert_eq!(&format!("{}", decode( &[0x33, 0xc0] ).unwrap()), "xor eax, eax"); assert_eq!(&format!("{}", decode( -- cgit v1.1