test(interface-types) Test Type::Record.

This commit is contained in:
Ivan Enderlin
2020-03-26 11:18:24 +01:00
parent c3c6fcbfdd
commit bddb4e90ee
5 changed files with 74 additions and 31 deletions

View File

@ -7,14 +7,17 @@ use wasmer_interface_types::{
fn test_binary_encoding_decoding_roundtrip() {
let original_ast = Interfaces {
types: vec![
Type {
Type::Function {
inputs: vec![],
outputs: vec![],
},
Type {
Type::Function {
inputs: vec![InterfaceType::I32, InterfaceType::I32],
outputs: vec![InterfaceType::S32],
},
Type::Record {
fields: vec![InterfaceType::String, InterfaceType::I32],
},
],
imports: vec![Import {
namespace: "a",