()
| 43 | |
| 44 | #[test] |
| 45 | fn parses_numeric_args() { |
| 46 | let ty = FuncType::new(&[WasmType::I32, WasmType::F64], &[WasmType::I32]); |
| 47 | let args = vec!["1".to_string(), "2.5".to_string()]; |
| 48 | let parsed = parse_invocation_args(&ty, &args).unwrap(); |
| 49 | assert_eq!(parsed, vec![WasmValue::I32(1), WasmValue::F64(2.5)]); |
| 50 | } |
| 51 | |
| 52 | #[test] |
| 53 | fn rejects_wrong_arity() { |
nothing calls this directly
no test coverage detected