()
| 91 | |
| 92 | #[test] |
| 93 | fn v128() -> wasmtime::Result<()> { |
| 94 | let mut store = Store::<()>::default(); |
| 95 | let g = Global::new( |
| 96 | &mut store, |
| 97 | GlobalType::new(ValType::V128, Mutability::Var), |
| 98 | 0u128.into(), |
| 99 | )?; |
| 100 | assert_eq!(g.get(&mut store).v128(), Some(V128::from(0))); |
| 101 | g.set(&mut store, 1u128.into())?; |
| 102 | assert_eq!(g.get(&mut store).v128(), Some(V128::from(1))); |
| 103 | Ok(()) |
| 104 | } |
| 105 | |
| 106 | #[test] |
| 107 | fn i31ref_global_new() -> Result<()> { |
no test coverage detected