summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-01-12 17:08:45 -0800
committeriximeow <me@iximeow.net>2020-01-12 17:08:45 -0800
commit9a1d438b6bfc38bfef1841786c03032143cad8b9 (patch)
treead041301a5fe94a1f1812f254aea704bb1c8f6d6 /test
parent8734e0cea4778fbdc9f93a70f86e709b14ce2fb3 (diff)
parent274fdaf33a7debb32e95ab57a41f9c03b173e164 (diff)
Merge remote-tracking branch 'master'
Diffstat (limited to 'test')
-rw-r--r--test/test.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test.rs b/test/test.rs
index a917ba9..48cf90b 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -8,21 +8,21 @@ use yaxpeax_msp430_mc::{Instruction, Opcode};
fn test_decode() {
let data = [0x02, 0x12];
let mut instr = Instruction::blank();
- instr.decode_into(&data);
+ instr.decode_into(data.iter().map(|x| *x));
assert!(instr.opcode == Opcode::PUSH);
let data = [0xb1, 0x92, 0x8d, 0x49];
let mut instr = Instruction::blank();
- instr.decode_into(&data);
+ instr.decode_into(data.iter().map(|x| *x));
assert!(instr.opcode == Opcode::CMP);
let data = [0x12, 0x00, 0x3f, 0x40];
let mut instr = Instruction::blank();
- instr.decode_into(&data);
+ instr.decode_into(data.iter().map(|x| *x));
assert!(instr.opcode == Opcode::RRC);
let data = [0x20, 0x0e];
let mut instr = Instruction::blank();
- instr.decode_into(&data);
+ instr.decode_into(data.iter().map(|x| *x));
assert!(instr.opcode == Opcode::PUSH);
}