diff options
Diffstat (limited to 'test/protected_mode/regspec.rs')
-rw-r--r-- | test/protected_mode/regspec.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/protected_mode/regspec.rs b/test/protected_mode/regspec.rs new file mode 100644 index 0000000..bd996cc --- /dev/null +++ b/test/protected_mode/regspec.rs @@ -0,0 +1,20 @@ +use yaxpeax_x86::protected_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::eip().name(), "eip"); + assert_eq!(RegSpec::ebp().name(), "ebp"); + assert_eq!(RegSpec::gs().name(), "gs"); + assert_eq!(RegSpec::al().name(), "al"); +} |