Skip to content

Commit

Permalink
Improved exported memory tests
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Aug 1, 2019
1 parent 2c6fbcb commit 70a767e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/runtime-c-api/tests/test-exported-memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 70a767e

Please sign in to comment.