From 7796f7e088c5aa878cfb61b5a885b64daf390808 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 3 Jul 2021 13:39:46 -0700 Subject: clean up x86_32 and make interfaces match x86_64 --- test/protected_mode/operand.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/protected_mode') diff --git a/test/protected_mode/operand.rs b/test/protected_mode/operand.rs index 0813c34..028cb8f 100644 --- a/test/protected_mode/operand.rs +++ b/test/protected_mode/operand.rs @@ -2,14 +2,14 @@ use yaxpeax_x86::protected_mode::{Operand, RegSpec}; #[test] fn register_widths() { - assert_eq!(Operand::Register(RegSpec::esp()).width(), 4); - assert_eq!(Operand::Register(RegSpec::sp()).width(), 2); - assert_eq!(Operand::Register(RegSpec::cl()).width(), 1); - assert_eq!(Operand::Register(RegSpec::ch()).width(), 1); - assert_eq!(Operand::Register(RegSpec::gs()).width(), 2); + assert_eq!(Operand::Register(RegSpec::esp()).width(), Some(4)); + assert_eq!(Operand::Register(RegSpec::sp()).width(), Some(2)); + assert_eq!(Operand::Register(RegSpec::cl()).width(), Some(1)); + assert_eq!(Operand::Register(RegSpec::ch()).width(), Some(1)); + assert_eq!(Operand::Register(RegSpec::gs()).width(), Some(2)); } #[test] fn memory_widths() { -// assert_eq!(Operand::RegDeref(RegSpec::esp()).width(), 4); + assert_eq!(Operand::RegDeref(RegSpec::esp()).width(), None); } -- cgit v1.1