From 0bcea6031e3d0b48acb15f6a7dfdab670ec8fcfc Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 2 Jan 2022 13:27:48 -0800 Subject: get test situation in order --- test/test.rs | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 test/test.rs (limited to 'test/test.rs') diff --git a/test/test.rs b/test/test.rs deleted file mode 100644 index eb9050e..0000000 --- a/test/test.rs +++ /dev/null @@ -1,52 +0,0 @@ -// #![feature(test)] -// -// extern crate test; - -extern crate yaxpeax_arch; -extern crate yaxpeax_arm; - -mod armv7; -mod armv8; - -use yaxpeax_arch::{Arch, Decoder, U8Reader}; - -#[test] -fn test_armv7_does_not_panic() { - let armv7 = ::Decoder::default(); - - for i in 0..=u32::MAX { - let bytes = i.to_le_bytes(); - let res = armv7.decode(&mut U8Reader::new(&bytes)); - if let Ok(instr) = res { - let s = instr.to_string(); - drop(s); - } - } -} -#[test] -fn test_armv7_thumb_does_not_panic() { - let mut armv7_t = ::Decoder::default(); - armv7_t.set_thumb_mode(true); - - for i in 0..=u32::MAX { - let bytes = i.to_le_bytes(); - let res = armv7_t.decode(&mut U8Reader::new(&bytes)); - if let Ok(instr) = res { - let s = instr.to_string(); - drop(s); - } - } -} -#[test] -fn test_armv8_does_not_panic() { - let armv8 = ::Decoder::default(); - - for i in 0..=u32::MAX { - let bytes = i.to_le_bytes(); - let res = armv8.decode(&mut U8Reader::new(&bytes)); - if let Ok(instr) = res { - let s = instr.to_string(); - drop(s); - } - } -} -- cgit v1.1