diff options
Diffstat (limited to 'tests/from_brain.rs')
-rw-r--r-- | tests/from_brain.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/from_brain.rs b/tests/from_brain.rs index 9c33dbf..0c9be88 100644 --- a/tests/from_brain.rs +++ b/tests/from_brain.rs @@ -2468,3 +2468,11 @@ fn no_panic() { DecodeError::InvalidOpcode ); } +#[test] +fn display() { + // if there is only an extender and no instruction, return an error. + test_invalid( + &[252, 205, 99, 0], + DecodeError::InvalidOpcode + ); +} |