()
| 336 | #[test] |
| 337 | #[cfg(feature = "std")] |
| 338 | fn nop_is_single_byte() { |
| 339 | // NOP needs to be a single byte so that it can be used to NOP out |
| 340 | // an instruction sequence of any length. |
| 341 | let inst = crate::op::Nop {}; |
| 342 | let mut bytes = vec![]; |
| 343 | inst.encode(&mut bytes); |
| 344 | assert_eq!(bytes.len(), 1); |
| 345 | } |