File tree Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Original file line number Diff line number Diff line change @@ -1434,36 +1434,7 @@ mod tests {
14341434 assert ! ( instance. is_err( ) ) ;
14351435 assert_eq ! (
14361436 instance. err( ) . unwrap( ) ,
1437- Error :: InstantiationFailed (
1438- "module requires 1 imported functions, 0 provided" . to_string( )
1439- )
1440- ) ;
1441- }
1442-
1443- #[ test]
1444- fn execute_host_function ( ) {
1445- /* wat2wasm
1446- (module
1447- (func $adler32 (import "env" "adler32") (param i32 i32) (result i32))
1448- (memory (export "memory") 1)
1449- (data (i32.const 0) "abcd")
1450- (func (export "test") (result i32)
1451- i32.const 0
1452- i32.const 4
1453- call $adler32
1454- )
1455- )
1456- */
1457- let input = hex:: decode (
1458- "0061736d01000000010b0260027f7f017f6000017f020f0103656e760761646c657233320000030201010503010001071102066d656d6f72790200047465737400010a0a0108004100410410000b0b0a010041000b0461626364" ) . unwrap ( ) ;
1459-
1460- let module = parse ( & input) ;
1461- assert ! ( module. is_ok( ) ) ;
1462- let instance = module. unwrap ( ) . instantiate ( ) ;
1463- assert ! ( instance. is_err( ) ) ;
1464- assert_eq ! (
1465- instance. err( ) . unwrap( ) ,
1466- "imported function env.adler32 is required"
1437+ Error :: InstantiationFailed ( "imported function env.adler32 is required" . to_string( ) )
14671438 ) ;
14681439 }
14691440
You can’t perform that action at this time.
0 commit comments