()
| 487 | |
| 488 | #[test] |
| 489 | fn test_pop_i32_const() { |
| 490 | let mut stack = Stack::new(); |
| 491 | stack.push(Val::i32(33i32)); |
| 492 | assert_eq!(33, stack.pop_i32_const().unwrap()); |
| 493 | |
| 494 | stack.push(Val::local(10, WasmValType::I32)); |
| 495 | assert!(stack.pop_i32_const().is_none()); |
| 496 | } |
| 497 | |
| 498 | #[test] |
| 499 | fn test_pop_reg() { |