Improved exported memory tests

This commit is contained in:
Syrus 2019-08-01 01:28:11 -07:00
parent 2c6fbcba1f
commit 70a767e204
2 changed files with 5 additions and 1 deletions

3
Cargo.lock generated
View File

@ -589,6 +589,9 @@ dependencies = [
name = "indexmap"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"serde 1.0.98 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "inkwell"

View File

@ -42,8 +42,9 @@ int main()
assert(export_length == 5);
// Get the `memory` export.
wasmer_export_t *export = wasmer_exports_get(exports, 1);
wasmer_export_t *export = wasmer_exports_get(exports, 0);
wasmer_import_export_kind kind = wasmer_export_kind(export);
printf("Wasmer import export kind: %d (Memory is %d)\n", kind, WASM_MEMORY);
assert(kind == WASM_MEMORY);
wasmer_byte_array export_name = wasmer_export_name(export);