add a test
This commit is contained in:
parent
c46faa1b18
commit
fb29596184
1 changed files with 15 additions and 2 deletions
|
|
@ -2160,10 +2160,23 @@ mod test {
|
|||
vc: 0,
|
||||
},
|
||||
),
|
||||
(
|
||||
vec![0x70, 0x10, 0x02, 0x00, 0x02, 0x00],
|
||||
Instruction::Format35C {
|
||||
a: 1,
|
||||
vg: 0,
|
||||
op: 112,
|
||||
b: 2,
|
||||
vf: 0,
|
||||
ve: 0,
|
||||
vd: 0,
|
||||
vc: 2,
|
||||
},
|
||||
),
|
||||
] {
|
||||
assert_eq!(expected.size(), raw.len());
|
||||
assert_eq!(expected, Instruction::deserialize_from_slice(&raw).unwrap());
|
||||
assert_eq!(raw, expected.serialize_to_vec().unwrap());
|
||||
assert_eq!(expected, Instruction::deserialize_from_slice(&raw).unwrap());
|
||||
assert_eq!(expected.size(), raw.len());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue