aboutsummaryrefslogtreecommitdiff
path: root/test/regspec.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-03-22 13:41:05 -0700
committeriximeow <me@iximeow.net>2020-03-22 13:41:05 -0700
commit0551aa5998226769e64b9e47ba1906c7a0cc3270 (patch)
treeadbc2b0819131c6e49c248c5f94de56408b8f507 /test/regspec.rs
parent953818c09904bad3d2639af888b48ee07fd99407 (diff)
yaxpeax-x86 decodes in 32-bit mode now
Diffstat (limited to 'test/regspec.rs')
-rw-r--r--test/regspec.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/regspec.rs b/test/regspec.rs
deleted file mode 100644
index 914c376..0000000
--- a/test/regspec.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-use yaxpeax_x86::long_mode::RegSpec;
-use std::collections::{BTreeMap, HashMap};
-
-#[test]
-fn test_ord() {
- let _: BTreeMap<RegSpec, u64> = BTreeMap::new();
-}
-
-#[test]
-fn test_hash() {
- let _: HashMap<RegSpec, u64> = HashMap::new();
-}
-
-#[test]
-fn test_labels() {
- assert_eq!(RegSpec::rip().name(), "rip");
- assert_eq!(RegSpec::eip().name(), "eip");
- assert_eq!(RegSpec::rflags().name(), "rflags");
- assert_eq!(RegSpec::rbp().name(), "rbp");
- assert_eq!(RegSpec::gs().name(), "gs");
- assert_eq!(RegSpec::al().name(), "al");
-}