summaryrefslogtreecommitdiff
path: root/tests/from_brain.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-04-13 19:34:39 -0700
committeriximeow <me@iximeow.net>2025-04-13 19:34:39 -0700
commit6f10ec12b4c81e4d040b933b1e3ee01da5ac9a0c (patch)
treed7e94de37b909b2a6ca29085d3e3c11902df1c30 /tests/from_brain.rs
parent2a7d0f4dd1b7ec13fa402cf7c18dc9f62e8c4b55 (diff)
fuzz cases: only 64 system registers, display should never panic
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 a72f561..9c33dbf 100644
--- a/tests/from_brain.rs
+++ b/tests/from_brain.rs
@@ -2460,3 +2460,11 @@ fn inst_1111() {
test_display(&0b1111_1101000_00100_11_1_00011_001_00110u32.to_le_bytes(), "{ if (p1.new) r7:6 = contains(r4, r3) }");
}
+
+#[test]
+fn no_panic() {
+ test_invalid(
+ &[253, 67, 36, 65, 68, 143, 143, 143, 143, 143, 143, 143, 3, 0, 2, 0, 143],
+ DecodeError::InvalidOpcode
+ );
+}