From 6d42e524734b8a0ae035b26421663d5cf088944f Mon Sep 17 00:00:00 2001 From: fro Date: Wed, 15 Nov 2017 19:33:39 +0300 Subject: [PATCH] fix test --- src/pack.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pack.rs b/src/pack.rs index e0096ed..0f1447f 100644 --- a/src/pack.rs +++ b/src/pack.rs @@ -12,7 +12,7 @@ pub fn pack_instance(raw_module: Vec, ctor_module: &mut elements::Module) { // in order to find it in the Code section of the module let create_func_id = { let found_entry = ctor_module.export_section().expect("No export section found").entries().iter() - .find(|entry| CREATE_SYMBOL == entry.field()).expect("No export with name _create found"); + .find(|entry| CREATE_SYMBOL == entry.field()).expect(&format!("No export with name {} found", CREATE_SYMBOL)); let function_index: usize = match found_entry.internal() { &Internal::Function(index) => index as usize, @@ -139,11 +139,11 @@ mod test { .build() .build() .export() - .field("_call") + .field(CALL_SYMBOL) .internal().func(0) .build() .export() - .field("_create") + .field(CREATE_SYMBOL) .internal().func(1) .build() .build();