summaryrefslogtreecommitdiff
path: root/tests/from_brain.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-04-13 19:40:12 -0700
committeriximeow <me@iximeow.net>2025-04-13 19:40:12 -0700
commit5a1731a2584222cf3e2d66685f96f8dc43cd3542 (patch)
treec5975b420c6f6234e3ed8a550f163c2d45752c3e /tests/from_brain.rs
parent6f10ec12b4c81e4d040b933b1e3ee01da5ac9a0c (diff)
another fuzz victory!
Diffstat (limited to 'tests/from_brain.rs')
-rw-r--r--tests/from_brain.rs8
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
+ );
+}