From a9e0e9baebf630b81aa4ca7f9fef759ab35d4973 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 4 Nov 2019 21:59:18 +0100 Subject: [PATCH] test(runtime-core) Write more documentation. --- lib/runtime-core-tests/tests/imports.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/runtime-core-tests/tests/imports.rs b/lib/runtime-core-tests/tests/imports.rs index bba5050f1..cbdc5a389 100644 --- a/lib/runtime-core-tests/tests/imports.rs +++ b/lib/runtime-core-tests/tests/imports.rs @@ -55,7 +55,14 @@ macro_rules! call_and_assert { }; } +/// The shift that is set in the instance memory. The value is part of +/// the result returned by the imported functions if the memory is +/// read properly. const SHIFT: i32 = 10; + +/// The shift that is captured in the environment of a closure. The +/// value is part of the result returned by the imported function if +/// the closure captures its environment properly. const shift: i32 = 100; fn imported_functions_forms(test: &dyn Fn(&Instance)) {