mirror of
https://github.com/fluencelabs/interface-types
synced 2025-06-24 12:11:39 +00:00
test(interface-types) Test Type::Record
.
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user